From bb66e9870e1d297de502767031563b8f2334cb1c Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 22 Nov 2015 15:02:14 +0000 Subject: [PATCH] Fix a memory leak in uxproxy.c. We set up a pair of bufchains for the standard input and output exchanged with the proxy process, but forgot to clear them when the Local_Proxy_Socket is cleaned up. --- unix/uxproxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/uxproxy.c b/unix/uxproxy.c index 8c916dc9..be414878 100644 --- a/unix/uxproxy.c +++ b/unix/uxproxy.c @@ -104,6 +104,8 @@ static void sk_localproxy_close (Socket s) uxsel_del(ps->from_cmd); close(ps->from_cmd); + bufchain_clear(&ps->pending_input_data); + bufchain_clear(&ps->pending_output_data); sfree(ps); } -- 2.45.2