X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=unix%2Fuxproxy.c;h=1191a61ab632f7d952c3e389e7577f058433d998;hb=4c31b113a6deb4894b640e4989ae9ef1f8063c0e;hp=cd256fdb66e1985ae18d0d57fea494afb5db4449;hpb=03fa61025b27384c5d64aee63f9b0a7fd917bb24;p=PuTTY.git 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; }