Re: [ovs-dev] [PATCH] json: Fix leaked nodes in json_hash_object()

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 12:23:03PM +0200, Thomas Graf wrote: > nodes is allocated through shash_sort() but never freed. > > Signed-off-by: Thomas Graf Wow, that's a long-standing bug. It looks like in practice we only ever hash objects used as identifiers in the OVSDB protocol, and it's not lik

[ovs-dev] [PATCH] json: Fix leaked nodes in json_hash_object()

2014-08-26 Thread Thomas Graf
nodes is allocated through shash_sort() but never freed. Signed-off-by: Thomas Graf --- lib/json.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/json.c b/lib/json.c index 167c40c..9c819d7 100644 --- a/lib/json.c +++ b/lib/json.c @@ -461,6 +461,7 @@ json_hash_object(const struct shash *