commit a342d2a: [Fix] Plug memory leak in fuzzy storage
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Nov 22 14:56:07 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-11-22 14:52:53 +0000
URL: https://github.com/rspamd/rspamd/commit/a342d2a61c6b9f1b213d6ec79edc2f3575d1b43e (HEAD -> master)
[Fix] Plug memory leak in fuzzy storage
---
src/fuzzy_storage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
More information about the Commits
mailing list