projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a67df3a
)
misc: free hashtable on destruction
author
David Herrmann
<dh.herrmann@googlemail.com>
Sat, 21 Jul 2012 21:32:07 +0000
(23:32 +0200)
committer
David 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
patch
|
blob
|
history
diff --git
a/src/static_misc.c
b/src/static_misc.c
index
fe0be26
..
4cd4a07
100644
(file)
--- a/
src/static_misc.c
+++ b/
src/static_misc.c
@@
-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,