diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-10 13:59:27 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-10 13:59:27 +0000 |
commit | 653ecce56f9215b189f9b0b556e79a6a7951e032 (patch) | |
tree | f3ba83cd151c128f6ac5cf17044aa31c8b30d915 /src/controller.c | |
parent | 26a8dbfd045ae44a55dd3c690ac370806afa213f (diff) | |
download | rspamd-653ecce56f9215b189f9b0b556e79a6a7951e032.tar.gz rspamd-653ecce56f9215b189f9b0b556e79a6a7951e032.zip |
[Fix] Plug termination memory leaks
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/controller.c b/src/controller.c index 8949da733..73c63d483 100644 --- a/src/controller.c +++ b/src/controller.c @@ -3346,7 +3346,6 @@ start_controller_worker (struct rspamd_worker *worker) ctx->start_time = time (NULL); ctx->worker = worker; ctx->cfg = worker->srv->cfg; - REF_RETAIN (ctx->cfg); ctx->srv = worker->srv; ctx->custom_commands = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal); @@ -3529,9 +3528,9 @@ start_controller_worker (struct rspamd_worker *worker) munmap (m, ctx->cached_enable_password.len); } - REF_RELEASE (ctx->cfg); g_hash_table_unref (ctx->plugins); g_hash_table_unref (ctx->custom_commands); + REF_RELEASE (ctx->cfg); exit (EXIT_SUCCESS); } |