diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-17 16:53:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-17 16:53:43 +0000 |
commit | 0bb9a7f42c71deb13c1ad9477062a61e36524b42 (patch) | |
tree | e169ae1cb601ec5e1f82783c6c4abf6d44923967 /src | |
parent | 6ff5a8debb423d1c7b62f18833cdd500876848af (diff) | |
download | rspamd-0bb9a7f42c71deb13c1ad9477062a61e36524b42.tar.gz rspamd-0bb9a7f42c71deb13c1ad9477062a61e36524b42.zip |
[Fix] Forgotten worker
Diffstat (limited to 'src')
-rw-r--r-- | src/lua_worker.c | 3 |
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, |