From 9be65154696859d94dcdeb7347ba5cca3b8d48ba Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 24 Mar 2022 18:06:39 +0100 Subject: hash: Flush tables when destroying This is cosmetics only, but stops valgrind from complaining about definitely lost memory. Signed-off-by: Phil Sutter --- src/hash.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/hash.c b/src/hash.c index fe6a047..a0f240c 100644 --- a/src/hash.c +++ b/src/hash.c @@ -55,6 +55,7 @@ hashtable_create(int hashsize, int limit, void hashtable_destroy(struct hashtable *h) { + hashtable_flush(h); free(h); } -- cgit v1.2.3