diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-09 17:07:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-09 17:07:25 +0100 |
commit | fb326efc2b3fa1c25705d218987199a608b87b87 (patch) | |
tree | c84faf049dea2e52bc8da120d25f242fa9c0c397 /src/rspamd_proxy.c | |
parent | d1ad620d8e8a1bc90dfdf6505a95c155dd31a0cd (diff) | |
download | rspamd-fb326efc2b3fa1c25705d218987199a608b87b87.tar.gz rspamd-fb326efc2b3fa1c25705d218987199a608b87b87.zip |
[Fix] Plug memory leak in proxy
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 4 |
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); |