From c321381747a5feef02812acfb6b4728486277bc2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 24 Apr 2014 16:06:17 -0700 Subject: [PATCH] Fix double free for fuzzy nodes. --- src/fuzzy_storage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 297e64ece..555e1d196 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -166,9 +166,8 @@ expire_nodes (gpointer *to_expire, gint expired_num, server_stat->fuzzy_hashes_expired ++; } server_stat->fuzzy_hashes --; - g_hash_table_remove (static_hash, node->h.hash_pipe); rspamd_bloom_del (bf, node->h.hash_pipe); - g_slice_free1 (sizeof (struct rspamd_fuzzy_node), node); + g_hash_table_remove (static_hash, node->h.hash_pipe); } else { cur = (GList *)to_expire[i]; -- 2.39.5