From: Vsevolod Stakhov Date: Wed, 10 Sep 2014 11:52:53 +0000 (+0100) Subject: Fix memory and descriptors leak in controller. X-Git-Tag: 0.7.0~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dba12535bbe2414a62417bff639087e973a65955;p=rspamd.git Fix memory and descriptors leak in controller. --- 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,