aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-17 16:53:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-17 16:53:43 +0000
commit0bb9a7f42c71deb13c1ad9477062a61e36524b42 (patch)
treee169ae1cb601ec5e1f82783c6c4abf6d44923967 /src
parent6ff5a8debb423d1c7b62f18833cdd500876848af (diff)
downloadrspamd-0bb9a7f42c71deb13c1ad9477062a61e36524b42.tar.gz
rspamd-0bb9a7f42c71deb13c1ad9477062a61e36524b42.zip
[Fix] Forgotten worker
Diffstat (limited to 'src')
-rw-r--r--src/lua_worker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c
index 624eb2082..bd0a53a81 100644
--- a/src/lua_worker.c
+++ b/src/lua_worker.c
@@ -311,7 +311,8 @@ init_lua_worker (struct rspamd_config *cfg)
type = g_quark_try_string ("lua");
- ctx = g_malloc0 (sizeof (struct rspamd_lua_worker_ctx));
+ ctx = rspamd_mempool_alloc (cfg->cfg_pool,
+ sizeof (struct rspamd_lua_worker_ctx));
ctx->magic = rspamd_lua_ctx_magic;
ctx->params = g_hash_table_new_full (rspamd_str_hash,
rspamd_str_equal,