misc: free hashtable on destruction
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 21 Jul 2012 21:32:07 +0000 (23:32 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 21 Jul 2012 21:32:07 +0000 (23:32 +0200)
Fix memory leak as we didn't free the hashtable memory after destruction.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/static_misc.c

index fe0be26..4cd4a07 100644 (file)
@@ -358,6 +358,7 @@ void kmscon_hashtable_free(struct kmscon_hashtable *tbl)
        }
 
        htable_clear(&tbl->tbl);
+       free(tbl);
 }
 
 int kmscon_hashtable_insert(struct kmscon_hashtable *tbl, void *key,