X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mac%2Fmtcpnet.c;h=791557d24c3254128bc3e3076d2278460ce4aac7;hb=4c31b113a6deb4894b640e4989ae9ef1f8063c0e;hp=5415fbc6fde116a85c8b48473c538426dbccd74d;hpb=6bb121ecb910115abe2ccba60938d18cbf826934;p=PuTTY.git diff --git a/mac/mtcpnet.c b/mac/mtcpnet.c index 5415fbc6..791557d2 100644 --- a/mac/mtcpnet.c +++ b/mac/mtcpnet.c @@ -410,7 +410,7 @@ Socket mactcp_register(void *sock, Plug plug) static TCPNotifyUPP mactcp_asr_upp; Socket mactcp_new(SockAddr addr, int port, int privport, int oobinline, - int nodelay, Plug plug) + int nodelay, int keepalive, Plug plug) { static struct socket_function_table fn_table = { mactcp_plug, @@ -517,6 +517,8 @@ Socket mactcp_new(SockAddr addr, int port, int privport, int oobinline, ret->next->prev = &ret->next; mactcp.socklist = ret; + sk_addr_free(addr); /* don't need this anymore */ + return (Socket)ret; }