From c5787588dfa3013231095e69507ff4a59244a93b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 10 Sep 2014 17:11:19 +0100 Subject: [PATCH] Fix task corruption in fuzzy_add. --- src/plugins/fuzzy_check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index a5a7041fd..0c3432fb8 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -727,7 +727,6 @@ err: ok: rspamd_http_connection_unref (session->http_entry->conn); - rspamd_task_free (session->task, TRUE); event_del (&session->ev); close (session->fd); @@ -741,6 +740,7 @@ ok: rspamd_controller_send_string (session->http_entry, "{\"success\":true}"); } + rspamd_task_free (session->task, TRUE); } } -- 2.39.5