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

Yifeng Sun pkusunyifeng at gmail.com
Tue Oct 31 15:33:03 UTC 2017


Reported by `make check-valgrind`.
This patch was tested by `make check` and `make check-valgrind`.

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

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
-- 
2.7.4



More information about the dev mailing list