aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-24 19:45:30 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-24 19:45:30 +0300
commit3f610ca7f6341261112fc372a8f53b5c40fb6be6 (patch)
tree9c231f781c7c4be94b05b30dad6076f4206310d0 /src/worker.c
parent121efbcddf8ec41eea91aa80574dab3730bf8976 (diff)
downloadrspamd-3f610ca7f6341261112fc372a8f53b5c40fb6be6.tar.gz
rspamd-3f610ca7f6341261112fc372a8f53b5c40fb6be6.zip
Fix several memory leaks in rspamd.
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/worker.c b/src/worker.c
index 0ac952b79..738002209 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -267,6 +267,9 @@ free_task (struct worker_task *task, gboolean is_soft)
if (task->messages) {
g_list_free (task->messages);
}
+ if (task->received) {
+ g_list_free (task->received);
+ }
memory_pool_delete (task->task_pool);
if (task->dispatcher) {
if (is_soft) {
@@ -449,6 +452,7 @@ err_socket (GError * err, void *arg)
if (ctx->is_custom) {
fin_custom_filters (task);
}
+ g_error_free (err);
if (task->state != WRITE_REPLY) {
destroy_session (task->s);
}