aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd_proxy.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-26 16:29:45 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-26 16:29:45 +0000
commit3089d894c57e2326db35f6c96224e0a005d803e6 (patch)
treeb5ec006987fec7af7faeb638db810c866e096079 /src/rspamd_proxy.c
parent7d04b331647d7738e5c273936ed0155960835bae (diff)
downloadrspamd-3089d894c57e2326db35f6c96224e0a005d803e6.tar.gz
rspamd-3089d894c57e2326db35f6c96224e0a005d803e6.zip
[Minor] Fix another deinit race
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r--src/rspamd_proxy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c
index 4add6cc22..b6ede29b9 100644
--- a/src/rspamd_proxy.c
+++ b/src/rspamd_proxy.c
@@ -2213,8 +2213,9 @@ start_rspamd_proxy (struct rspamd_worker *worker)
rspamd_stat_close ();
}
+ 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);