aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c3
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);
}