From 7672a0ae2ef3ea7d6c79f1f9de5f3d9d1cd84b85 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 17 Jan 2017 16:52:45 +0000 Subject: [Fix] Plug reload leaks --- src/hs_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hs_helper.c') diff --git a/src/hs_helper.c b/src/hs_helper.c index 088aba8ae..94e50e721 100644 --- a/src/hs_helper.c +++ b/src/hs_helper.c @@ -62,7 +62,7 @@ init_hs_helper (struct rspamd_config *cfg) GQuark type; type = g_quark_try_string ("hs_helper"); - ctx = g_malloc0 (sizeof (*ctx)); + ctx = rspamd_mempool_alloc0 (cfg->cfg_pool, sizeof (*ctx)); ctx->magic = rspamd_hs_helper_magic; ctx->cfg = cfg; -- cgit v1.2.3