aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-30 18:28:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-30 18:28:42 +0100
commit2bd378744f6fdbeb79be10ec08851aed73405398 (patch)
tree23ea738b24d2ff896382ee5ba36d01a46f26196e /src/controller.c
parent2780171168576460f65f1ae92a0d9707646254d2 (diff)
downloadrspamd-2bd378744f6fdbeb79be10ec08851aed73405398.tar.gz
rspamd-2bd378744f6fdbeb79be10ec08851aed73405398.zip
Fix destroy order.
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controller.c b/src/controller.c
index c0341305b..1657307df 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -1502,12 +1502,12 @@ rspamd_controller_finish_handler (struct rspamd_http_connection_entry *conn_ent)
{
struct rspamd_controller_session *session = conn_ent->ud;
- if (session->pool) {
- rspamd_mempool_delete (session->pool);
- }
if (session->task != NULL) {
destroy_session (session->task->s);
}
+ if (session->pool) {
+ rspamd_mempool_delete (session->pool);
+ }
g_slice_free1 (sizeof (struct rspamd_controller_session), session);
}