Blame SOURCES/0009-hash-Flush-tables-when-destroying.patch

4a3166
From 928268da2fc7e4c3ba393fceba9b38c230b7151e Mon Sep 17 00:00:00 2001
4a3166
From: Phil Sutter <phil@nwl.cc>
4a3166
Date: Thu, 24 Mar 2022 18:06:39 +0100
4a3166
Subject: [PATCH] hash: Flush tables when destroying
4a3166
4a3166
This is cosmetics only, but stops valgrind from complaining about
4a3166
definitely lost memory.
4a3166
4a3166
Signed-off-by: Phil Sutter <phil@nwl.cc>
4a3166
(cherry picked from commit 9be65154696859d94dcdeb7347ba5cca3b8d48ba)
4a3166
---
4a3166
 src/hash.c | 1 +
4a3166
 1 file changed, 1 insertion(+)
4a3166
4a3166
diff --git a/src/hash.c b/src/hash.c
4a3166
index fe6a047fcebe0..a0f240c21fa82 100644
4a3166
--- a/src/hash.c
4a3166
+++ b/src/hash.c
4a3166
@@ -55,6 +55,7 @@ hashtable_create(int hashsize, int limit,
4a3166
 
4a3166
 void hashtable_destroy(struct hashtable *h)
4a3166
 {
4a3166
+	hashtable_flush(h);
4a3166
 	free(h);
4a3166
 }
4a3166
 
4a3166
-- 
4a3166
2.34.1
4a3166