summaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-22 14:52:53 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-22 14:53:23 +0000
commita342d2a61c6b9f1b213d6ec79edc2f3575d1b43e (patch)
tree87a1a42263373a56ddcee95c2cab43c1ddf9562b /src/fuzzy_storage.c
parentfe8991aac2ac1db108489fbcd42a8bdf7bd804c3 (diff)
downloadrspamd-a342d2a61c6b9f1b213d6ec79edc2f3575d1b43e.tar.gz
rspamd-a342d2a61c6b9f1b213d6ec79edc2f3575d1b43e.zip
[Fix] Plug memory leak in fuzzy storage
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 04acc6ba5..9a443d328 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -1599,7 +1599,7 @@ fuzzy_parse_keypair (rspamd_mempool_t *pool,
keystat = rspamd_mempool_alloc0 (pool, sizeof (*keystat));
/* Hash of ip -> fuzzy_key_stat */
keystat->last_ips = rspamd_lru_hash_new_full (1024,
- (GDestroyNotify) rspamd_inet_address_free, fuzzy_key_stat_dtor,
+ (GDestroyNotify) rspamd_inet_address_free, g_free,
rspamd_inet_address_hash, rspamd_inet_address_equal);
key->stat = keystat;
pk = rspamd_keypair_component (kp, RSPAMD_KEYPAIR_COMPONENT_PK,