summaryrefslogtreecommitdiff
path: root/tests/test-ovsdb.c
diff options
context:
space:
mode:
authorYi-Hung Wei <yihung.wei@gmail.com>2017-04-07 14:43:43 -0700
committerBen Pfaff <blp@ovn.org>2017-04-24 09:32:29 -0700
commit98a1a320f29e2f3c751c92472f3b7bfeaee2c085 (patch)
tree9b354822c6b51aa40310bceeedb821d30b548608 /tests/test-ovsdb.c
parent3547a8c12835498869e114968665f3245c3ef873 (diff)
downloadopenvswitch-98a1a320f29e2f3c751c92472f3b7bfeaee2c085.tar.gz
tests-ovsdb: Fix memory leak
Fix memory leaks reported by valgrind. Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests/test-ovsdb.c')
-rw-r--r--tests/test-ovsdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c
index 09e4f0daa..0f2101e57 100644
--- a/tests/test-ovsdb.c
+++ b/tests/test-ovsdb.c
@@ -2529,6 +2529,7 @@ do_idl_partial_update_map_column(struct ovs_cmdl_context *ctx)
printf("%03d: After trying to delete a deleted element\n", step++);
dump_simple2(idl, myRow, step++);
+ ovsdb_idl_destroy(idl);
printf("%03d: End test\n", step);
return;
}
@@ -2648,6 +2649,7 @@ do_idl_partial_update_set_column(struct ovs_cmdl_context *ctx)
ovsdb_idl_get_initial_snapshot(idl);
printf("%03d: After add to other table + set of strong ref\n", step++);
dump_simple3(idl, myRow, step++);
+ ovsdb_idl_destroy(idl);
printf("%03d: End test\n", step);
return;
}