From a1b50603e54ba8d63515b14f1f69549c3f7d7713 Mon Sep 17 00:00:00 2001
From: "Wolfgang (Blub) Bumiller" <blub@speed.at>
Date: Sun, 25 Nov 2012 15:12:16 +0100
Subject: [PATCH] fixing a leak in the hashtables, htdel didn't delete the
 hash_node_t entries

---
 util.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/util.c b/util.c
index 1bbbf96..6853393 100644
--- a/util.c
+++ b/util.c
@@ -640,12 +640,15 @@ void util_htdel(hash_table_t *ht) {
     size_t i = 0;
     for (; i < ht->size; i++) {
         hash_node_t *n = ht->table[i];
+        hash_node_t *p;
         
         /* free in list */
         while (n) {
             if (n->key)
                 mem_d(n->key);
+            p = n;
             n = n->next;
+            mem_d(p);
         }
         
     }
-- 
2.39.5