mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-12 00:33:53 -05:00
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.
(cherry picked from commit bb66e9870e
)
This commit is contained in:
@ -104,6 +104,8 @@ static void sk_localproxy_close (Socket s)
|
|||||||
uxsel_del(ps->from_cmd);
|
uxsel_del(ps->from_cmd);
|
||||||
close(ps->from_cmd);
|
close(ps->from_cmd);
|
||||||
|
|
||||||
|
bufchain_clear(&ps->pending_input_data);
|
||||||
|
bufchain_clear(&ps->pending_output_data);
|
||||||
sfree(ps);
|
sfree(ps);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user