summaryrefslogtreecommitdiffstats
path: root/src/worker_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/worker_util.c')
-rw-r--r--src/worker_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker_util.c b/src/worker_util.c
index e8d8f7423..599d098c9 100644
--- a/src/worker_util.c
+++ b/src/worker_util.c
@@ -152,7 +152,6 @@ free_task (struct worker_task *task, gboolean is_soft)
if (task->received) {
g_list_free (task->received);
}
- memory_pool_delete (task->task_pool);
if (task->dispatcher) {
if (is_soft) {
/* Plan dispatcher shutdown */
@@ -165,6 +164,7 @@ free_task (struct worker_task *task, gboolean is_soft)
if (task->sock != -1) {
close (task->sock);
}
+ memory_pool_delete (task->task_pool);
g_slice_free1 (sizeof (struct worker_task), task);
}
}