aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/hash.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-01 16:09:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-01 16:09:08 +0100
commitec26b2891d5fed2a27e294634197fa0b173b46a5 (patch)
tree9f812c9ce06893ac996459cb18343d080060b870 /src/libutil/hash.c
parentd3bd1855c805263420b023cb128b60e738ed465f (diff)
downloadrspamd-ec26b2891d5fed2a27e294634197fa0b173b46a5.tar.gz
rspamd-ec26b2891d5fed2a27e294634197fa0b173b46a5.zip
Fix LRU hash destroy.
Diffstat (limited to 'src/libutil/hash.c')
-rw-r--r--src/libutil/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.c b/src/libutil/hash.c
index 0a09e3b11..04f87d7a1 100644
--- a/src/libutil/hash.c
+++ b/src/libutil/hash.c
@@ -223,8 +223,8 @@ rspamd_lru_hash_insert (rspamd_lru_hash_t *hash, gpointer key, gpointer value,
void
rspamd_lru_hash_destroy (rspamd_lru_hash_t *hash)
{
- g_queue_free (hash->exp);
g_hash_table_unref (hash->tbl);
+ g_queue_free (hash->exp);
g_slice_free1 (sizeof (rspamd_lru_hash_t), hash);
}