From d855aeadfd46089ba26902ee31c8e0b3860c045b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 23 Sep 2009 15:33:00 -0700 Subject: [PATCH] shash: Fix memory leak in shash_destroy(). hmap_destroy() has to be called so that sh->map.buckets gets freed. --- lib/shash.c | 1 + 1 file changed, 1 insertion(+) 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); } } -- 2.30.2