]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix a memory leak in uxproxy.c.
authorSimon Tatham <anakin@pobox.com>
Sun, 22 Nov 2015 15:02:14 +0000 (15:02 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 29 Feb 2016 19:59:34 +0000 (19:59 +0000)
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.

(cherry picked from commit bb66e9870e1d297de502767031563b8f2334cb1c)

unix/uxproxy.c

index fe81d5fd02ac6d3071dd533fa008d2db219f8ba2..6f1f793f68958026681c36e5fbd223e60b145012 100644 (file)
@@ -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);
 }