misc: free hashtable on destruction

Fix memory leak as we didn't free the hashtable memory after destruction.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-07-21 23:32:07 +02:00
parent a67df3a069
commit a4ab9158f1

View 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,