From: Simon Tatham Date: Sun, 22 Nov 2015 15:02:14 +0000 (+0000) Subject: Fix a memory leak in uxproxy.c. X-Git-Tag: 0.68~316 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;ds=sidebyside;h=bb66e9870e1d297de502767031563b8f2334cb1c;p=PuTTY.git 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. --- 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); }