From a99dac227c89cec49b10093dbd02e0e6233ff5a4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 22 Apr 2014 17:22:24 +0100 Subject: [PATCH] Do not use http entry after freeing it. --- src/libutil/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/http.c b/src/libutil/http.c index 3fa4bd3a88..1e4ceae1f0 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -952,10 +952,10 @@ rspamd_http_entry_free (struct rspamd_http_connection_entry *entry) if (entry != NULL) { close (entry->conn->fd); rspamd_http_connection_unref (entry->conn); - g_slice_free1 (sizeof (struct rspamd_http_connection_entry), entry); if (entry->rt->finish_handler) { entry->rt->finish_handler (entry); } + g_slice_free1 (sizeof (struct rspamd_http_connection_entry), entry); } } -- 2.47.3