aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c
index 87ac965ec..ac1acae81 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -3942,8 +3942,10 @@ start_controller_worker (struct rspamd_worker *worker)
g_hash_table_unref (ctx->plugins);
g_hash_table_unref (ctx->custom_commands);
+
+ struct rspamd_http_context *http_ctx = ctx->http_ctx;
REF_RELEASE (ctx->cfg);
- rspamd_http_context_free (ctx->http_ctx);
+ rspamd_http_context_free (http_ctx);
rspamd_log_close (worker->srv->logger, TRUE);
exit (EXIT_SUCCESS);