shash: Fix memory leak in shash_destroy().
[cascardo/ovs.git] / lib / shash.c
index 9ddafe0..520e189 100644 (file)
@@ -36,6 +36,7 @@ shash_destroy(struct shash *sh)
 {
     if (sh) {
         shash_clear(sh);
+        hmap_destroy(&sh->map);
     }
 }