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:
parent
a67df3a069
commit
a4ab9158f1
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user