diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-17 17:45:05 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-17 17:45:05 +0000 |
commit | 0c445cda06d5e84d6181c65eb02b9b9953d0729b (patch) | |
tree | ead91a1ab469806f1f990cddc6e62925d1b8f191 /src/worker.c | |
parent | 658cbe75e6c54c1462f8a8f86df303c3b19e5fc1 (diff) | |
download | rspamd-0c445cda06d5e84d6181c65eb02b9b9953d0729b.tar.gz rspamd-0c445cda06d5e84d6181c65eb02b9b9953d0729b.zip |
[Fix] More random fixes for reload...
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/worker.c b/src/worker.c index bf50e5210..94ef2c9d1 100644 --- a/src/worker.c +++ b/src/worker.c @@ -488,7 +488,7 @@ init_worker (struct rspamd_config *cfg) type = g_quark_try_string ("normal"); - ctx = rspamd_mempool_alloc (cfg->cfg_pool, + ctx = rspamd_mempool_alloc0 (cfg->cfg_pool, sizeof (struct rspamd_worker_ctx)); ctx->magic = rspamd_worker_magic; @@ -638,10 +638,6 @@ start_worker (struct rspamd_worker *worker) rspamd_stat_close (); rspamd_log_close (worker->srv->logger); - if (ctx->key) { - rspamd_keypair_unref (ctx->key); - } - rspamd_keypair_cache_destroy (ctx->keys_cache); DL_FOREACH_SAFE (ctx->log_pipes, lp, ltmp) { |