2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-05 00:35:33 +00:00

ovn-nbctl: Pull up releasing IDL from do_nbctl().

Destroy IDL resources in the routine where we allocated them.

Preparatory work for reusing the main loop in daemon mode.

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Jakub Sitnicki
2018-07-19 15:51:10 +02:00
committed by Ben Pfaff
parent 0d1eed8910
commit 01c9c5110a

View File

@@ -127,6 +127,9 @@ main(int argc, char *argv[])
main_loop(args, commands, n_commands, idl);
ovsdb_idl_destroy(idl);
idl = the_idl = NULL;
for (struct ctl_command *c = commands; c < &commands[n_commands]; c++) {
ds_destroy(&c->output);
table_destroy(c->table);
@@ -4450,7 +4453,6 @@ do_nbctl(const char *args, struct ctl_command *commands, size_t n_commands,
}
ovsdb_idl_txn_destroy(txn);
ovsdb_idl_destroy(idl);
return true;