]> source.dussan.org Git - rspamd.git/commitdiff
Fix LRU hash destroy.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Apr 2015 15:09:08 +0000 (16:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Apr 2015 15:09:08 +0000 (16:09 +0100)
src/libutil/hash.c

index 0a09e3b116d33d9888e391d3622de08463c15296..04f87d7a1d50a2385bea8323531f6e9255509b42 100644 (file)
@@ -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);
 }