From: Ben Pfaff Date: Wed, 23 Sep 2009 22:33:00 +0000 (-0700) Subject: shash: Fix memory leak in shash_destroy(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d855aeadfd46089ba26902ee31c8e0b3860c045b;p=openvswitch 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 9ddafe0b..520e1892 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); } }