From: Vsevolod Stakhov Date: Sun, 14 May 2017 10:02:30 +0000 (+0100) Subject: [Fix] Fix LRU elements removal X-Git-Tag: 1.6.0~215 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=869fdf9a5936911168c52d451986404cfb42bc8f;p=rspamd.git [Fix] Fix LRU elements removal --- diff --git a/src/libutil/hash.c b/src/libutil/hash.c index c2dd39d07..5be46724e 100644 --- a/src/libutil/hash.c +++ b/src/libutil/hash.c @@ -215,7 +215,7 @@ rspamd_lru_hash_remove_node (rspamd_lru_hash_t *hash, rspamd_lru_element_t *elt) rspamd_lru_hash_remove_evicted (hash, elt); } - g_hash_table_remove (hash->tbl, elt); + g_hash_table_remove (hash->tbl, elt->key); } static rspamd_lru_element_t *