aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}