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/worker.c | |
parent | f4149123c25d3850197acb93265c4a02c522a497 (diff) | |
download | rspamd-7672a0ae2ef3ea7d6c79f1f9de5f3d9d1cd84b85.tar.gz rspamd-7672a0ae2ef3ea7d6c79f1f9de5f3d9d1cd84b85.zip |
[Fix] Plug reload leaks
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/worker.c b/src/worker.c index 9d4b175a3..bf50e5210 100644 --- a/src/worker.c +++ b/src/worker.c @@ -488,7 +488,8 @@ init_worker (struct rspamd_config *cfg) type = g_quark_try_string ("normal"); - ctx = g_malloc0 (sizeof (struct rspamd_worker_ctx)); + ctx = rspamd_mempool_alloc (cfg->cfg_pool, + sizeof (struct rspamd_worker_ctx)); ctx->magic = rspamd_worker_magic; ctx->is_mime = TRUE; |