diff options
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r-- | src/hs_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |