diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-27 13:47:00 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-27 13:47:00 +0300 |
commit | fdccb337ed73f14b204721cf464ca03a7eca49b6 (patch) | |
tree | 6efd3483f969be2e63d6f285d281adbab82fff0f /src/worker.c | |
parent | 251d13cc56cdf625bafac9db008d85abe0fa893c (diff) | |
download | rspamd-fdccb337ed73f14b204721cf464ca03a7eca49b6.tar.gz rspamd-fdccb337ed73f14b204721cf464ca03a7eca49b6.zip |
* Fix 2 memory leaks
* Fix uptime command output
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/worker.c b/src/worker.c index cf716ee0d..02fcc8707 100644 --- a/src/worker.c +++ b/src/worker.c @@ -110,6 +110,9 @@ free_task (struct worker_task *task, gboolean is_soft) g_byte_array_free (p->content, TRUE); g_list_free_1 (part); } + if (task->text_parts) { + g_list_free (task->text_parts); + } memory_pool_delete (task->task_pool); if (is_soft) { /* Plan dispatcher shutdown */ |