From: Ben Pfaff Date: Wed, 23 Sep 2009 22:33:00 +0000 (-0700) Subject: shash: Fix memory leak in shash_destroy(). X-Git-Tag: v0.90.7~63 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d855aeadfd46089ba26902ee31c8e0b3860c045b;p=sliver-openvswitch.git shash: Fix memory leak in shash_destroy(). hmap_destroy() has to be called so that sh->map.buckets gets freed. --- diff --git a/lib/shash.c b/lib/shash.c index 9ddafe0be..520e18929 100644 --- a/lib/shash.c +++ b/lib/shash.c @@ -36,6 +36,7 @@ shash_destroy(struct shash *sh) { if (sh) { shash_clear(sh); + hmap_destroy(&sh->map); } }