X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/0f0a25075f6e788462506686cf538bc13a5beedb..f33ba69e92f389f5884eae5a586858a629a5260b:/unix/uxproxy.c diff --git a/unix/uxproxy.c b/unix/uxproxy.c index cd256fdb..1191a61a 100644 --- a/unix/uxproxy.c +++ b/unix/uxproxy.c @@ -221,8 +221,8 @@ static int localproxy_select_result(int fd, int event) Socket platform_new_connection(SockAddr addr, char *hostname, int port, int privport, - int oobinline, int nodelay, Plug plug, - const Config *cfg) + int oobinline, int nodelay, int keepalive, + Plug plug, const Config *cfg) { char *cmd; @@ -299,5 +299,8 @@ Socket platform_new_connection(SockAddr addr, char *hostname, uxsel_set(ret->from_cmd, 1, localproxy_select_result); + /* We are responsible for this and don't need it any more */ + sk_addr_free(addr); + return (Socket) ret; }