diff options
author | Thomas Graf <tgraf@noironetworks.com> | 2014-08-26 12:23:03 +0200 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-08-26 09:13:45 -0700 |
commit | 98a4201446b682b5df2131abe7e9ded95db05fb9 (patch) | |
tree | 4dc172ff20da13f8d4907a9f30cb9ee20e7357b7 | |
parent | 115a1174a736a6af062f24286d71d651591cb78d (diff) | |
download | openvswitch-98a4201446b682b5df2131abe7e9ded95db05fb9.tar.gz |
json: Fix leaked nodes in json_hash_object()
nodes is allocated through shash_sort() but never freed.
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
-rw-r--r-- | lib/json.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/json.c b/lib/json.c index a13d06d58..32a162489 100644 --- a/lib/json.c +++ b/lib/json.c @@ -461,6 +461,7 @@ json_hash_object(const struct shash *object, size_t basis) basis = hash_string(node->name, basis); basis = json_hash(node->data, basis); } + free(nodes); return basis; } |