diff options
author | Phil Sutter <phil@nwl.cc> | 2022-03-24 18:06:39 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-03-28 12:19:44 +0200 |
commit | 9be65154696859d94dcdeb7347ba5cca3b8d48ba (patch) | |
tree | 4ca33bfa15a326d7ab162c4161c508a903e1dcfb /src | |
parent | dc454a657f57a5cf143fddc5c1dd87a510c1790a (diff) |
hash: Flush tables when destroying
This is cosmetics only, but stops valgrind from complaining about
definitely lost memory.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src')
-rw-r--r-- | src/hash.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -55,6 +55,7 @@ hashtable_create(int hashsize, int limit, void hashtable_destroy(struct hashtable *h) { + hashtable_flush(h); free(h); } |