diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-17 16:52:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-17 16:52:45 +0000 |
commit | 7672a0ae2ef3ea7d6c79f1f9de5f3d9d1cd84b85 (patch) | |
tree | 080b389d00619447bfc62501be825d0f59dec49d /src/hs_helper.c | |
parent | f4149123c25d3850197acb93265c4a02c522a497 (diff) | |
download | rspamd-7672a0ae2ef3ea7d6c79f1f9de5f3d9d1cd84b85.tar.gz rspamd-7672a0ae2ef3ea7d6c79f1f9de5f3d9d1cd84b85.zip |
[Fix] Plug reload leaks
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; |