diff mbox

[ovs-dev,5/8] tests-ovsdb: Fix memory leak

Message ID 1491601426-77274-5-git-send-email-yihung.wei@gmail.com
State Accepted
Headers show

Commit Message

Yi-Hung Wei April 7, 2017, 9:43 p.m. UTC
Fix memory leaks reported by valgrind.

Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
---
 tests/test-ovsdb.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ben Pfaff April 24, 2017, 4:33 p.m. UTC | #1
On Fri, Apr 07, 2017 at 02:43:43PM -0700, Yi-Hung Wei wrote:
> Fix memory leaks reported by valgrind.
> 
> Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>

Thanks, applied to master.
diff mbox

Patch

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;
 }