aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-09 17:07:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-09 17:07:25 +0100
commitfb326efc2b3fa1c25705d218987199a608b87b87 (patch)
treec84faf049dea2e52bc8da120d25f242fa9c0c397
parentd1ad620d8e8a1bc90dfdf6505a95c155dd31a0cd (diff)
downloadrspamd-fb326efc2b3fa1c25705d218987199a608b87b87.tar.gz
rspamd-fb326efc2b3fa1c25705d218987199a608b87b87.zip
[Fix] Plug memory leak in proxy
-rw-r--r--src/rspamd_proxy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c
index 5a969a155..5864d6020 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);