From 3089d894c57e2326db35f6c96224e0a005d803e6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 26 Feb 2019 16:29:45 +0000 Subject: [Minor] Fix another deinit race --- src/fuzzy_storage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fuzzy_storage.c') diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 50a99f030..7fdce82ae 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -3235,8 +3235,9 @@ start_fuzzy (struct rspamd_worker *worker) rspamd_keypair_cache_destroy (ctx->keypair_cache); } + 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); -- cgit v1.2.3