From: Vsevolod Stakhov Date: Thu, 24 Apr 2014 23:06:17 +0000 (-0700) Subject: Fix double free for fuzzy nodes. X-Git-Tag: 0.7.0~270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c321381747a5feef02812acfb6b4728486277bc2;p=thirdparty%2Frspamd.git Fix double free for fuzzy nodes. --- diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 297e64eceb..555e1d1964 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];