From: Vsevolod Stakhov Date: Thu, 9 Jun 2016 16:07:25 +0000 (+0100) Subject: [Fix] Plug memory leak in proxy X-Git-Tag: 1.3.0~384 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb326efc2b3fa1c25705d218987199a608b87b87;p=thirdparty%2Frspamd.git [Fix] Plug memory leak in proxy --- diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 5a969a155e..5864d6020a 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -804,6 +804,10 @@ proxy_session_dtor (struct rspamd_proxy_session *session) } } + if (session->master_conn->results) { + ucl_object_unref (session->master_conn->results); + } + g_ptr_array_free (session->mirror_conns, TRUE); rspamd_inet_address_destroy (session->client_addr); close (session->client_sock);