aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-02 19:02:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-02 19:02:14 +0100
commit22a433506e0d3fb9321df8d3b655217b15a61017 (patch)
tree0f24b7e48887638df398022d3bf132610cc614bc /src/worker.c
parent8d586a8cc112d54ebbe7c39d8c6c5f3b25369b72 (diff)
downloadrspamd-22a433506e0d3fb9321df8d3b655217b15a61017.tar.gz
rspamd-22a433506e0d3fb9321df8d3b655217b15a61017.zip
Avoid double free if cannot load message.
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/worker.c b/src/worker.c
index 5c1fc396f..ba322d51e 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -115,7 +115,6 @@ rspamd_worker_body_handler (struct rspamd_http_connection *conn,
}
if (!rspamd_task_load_message (task, msg, chunk, len)) {
- rspamd_session_destroy (task->s);
return 0;
}