diff mbox series

[ovs-dev,1/3] ovsdb-idl: Fix memory leak

Message ID 1509463985-8671-1-git-send-email-pkusunyifeng@gmail.com
State Superseded
Headers show
Series [ovs-dev,1/3] ovsdb-idl: Fix memory leak | expand

Commit Message

Yifeng Sun Oct. 31, 2017, 3:33 p.m. UTC
Reported by `make check-valgrind`.
This patch was tested by `make check` and `make check-valgrind`.

Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com>
---
 lib/ovsdb-idl.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c
index 5617e08d633c..be29c92957c0 100644
--- a/lib/ovsdb-idl.c
+++ b/lib/ovsdb-idl.c
@@ -2163,6 +2163,7 @@  ovsdb_idl_destroy_indexes(struct ovsdb_idl_table *table)
         skiplist_destroy(index->skiplist, NULL);
         free(index->columns);
     }
+    shash_destroy_free_data(&table->indexes);
 }
 
 static void