From dba12535bbe2414a62417bff639087e973a65955 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 10 Sep 2014 12:52:53 +0100 Subject: [PATCH] Fix memory and descriptors leak in controller. --- src/plugins/fuzzy_check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.5