Fix memory leaks reported by valgrind.

Signed-off-by: Yi-Hung Wei <[email protected]>
---
 tests/test-ovsdb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c
index 09e4f0daa0db..0f2101e57567 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;
 }
-- 
2.7.4

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to