From: Vsevolod Stakhov Date: Tue, 22 Apr 2014 16:22:24 +0000 (+0100) Subject: Do not use http entry after freeing it. X-Git-Tag: 0.7.0~293 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a99dac227c89cec49b10093dbd02e0e6233ff5a4;p=thirdparty%2Frspamd.git Do not use http entry after freeing it. --- 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); } }