projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3d2a29
)
tun-metadata: Fix memory leak in table_free()
author
William Tu
<u9012063@gmail.com>
Tue, 22 Dec 2015 17:44:14 +0000
(09:44 -0800)
committer
Jesse Gross
<jesse@kernel.org>
Tue, 22 Dec 2015 19:29:18 +0000
(11:29 -0800)
Found by valgrind, test case 643.
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: Jesse Gross <jesse@kernel.org>
lib/tun-metadata.c
patch
|
blob
|
history
diff --git
a/lib/tun-metadata.c
b/lib/tun-metadata.c
index
648a120
..
ececee5
100644
(file)
--- a/
lib/tun-metadata.c
+++ b/
lib/tun-metadata.c
@@
-132,6
+132,7
@@
table_free(struct tun_table *map) OVS_REQUIRES(tab_mutex)
tun_metadata_del_entry(map, entry - map->entries);
}
+ hmap_destroy(&map->key_hmap);
free(map);
}