summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-10 12:52:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-10 12:52:53 +0100
commitdba12535bbe2414a62417bff639087e973a65955 (patch)
treefcd6470098614cdb8c2b1eb8823bc2b66dee1505
parent774b0137868ae6720bf15645fddc2e460c1c0c4b (diff)
downloadrspamd-dba12535bbe2414a62417bff639087e973a65955.tar.gz
rspamd-dba12535bbe2414a62417bff639087e973a65955.zip
Fix memory and descriptors leak in controller.
-rw-r--r--src/plugins/fuzzy_check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 0b50111ed..a5a7041fd 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -724,12 +724,13 @@ fuzzy_learn_callback (gint fd, short what, void *arg)
err:
msg_err ("got error in IO with server %s, %d, %s",
session->server->name, errno, strerror (errno));
+
+ok:
rspamd_http_connection_unref (session->http_entry->conn);
rspamd_task_free (session->task, TRUE);
event_del (&session->ev);
close (session->fd);
-ok:
if (--(*(session->saved)) == 0) {
if (*(session->err) != NULL) {
rspamd_controller_send_error (session->http_entry,