mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +00:00
ovs-vsctl: Free memory on successful exit.
This is not important in itself, but it helps to spot real memory leaks. Found with valgrind.
This commit is contained in:
@@ -2581,7 +2581,10 @@ do_vsctl(const char *args, struct vsctl_command *commands, size_t n_commands,
|
|||||||
} else {
|
} else {
|
||||||
fputs(ds_cstr(ds), stdout);
|
fputs(ds_cstr(ds), stdout);
|
||||||
}
|
}
|
||||||
|
ds_destroy(&c->output);
|
||||||
|
shash_destroy(&c->options);
|
||||||
}
|
}
|
||||||
|
free(commands);
|
||||||
|
|
||||||
if (wait_for_reload && status != TXN_UNCHANGED) {
|
if (wait_for_reload && status != TXN_UNCHANGED) {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
@@ -2598,6 +2601,7 @@ do_vsctl(const char *args, struct vsctl_command *commands, size_t n_commands,
|
|||||||
}
|
}
|
||||||
done: ;
|
done: ;
|
||||||
}
|
}
|
||||||
|
ovsdb_idl_destroy(idl);
|
||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user