Control of 'addr' is now handed over to {platform_,}new_connection() and
[u/mdw/putty] / winnet.c
index 6052725..c211f53 100644 (file)
--- a/winnet.c
+++ b/winnet.c
@@ -701,6 +701,9 @@ Socket sk_new(SockAddr addr, int port, int privport, int oobinline,
 
     add234(sktree, ret);
 
+    /* We're done with 'addr' now. */
+    sk_addr_free(addr);
+
     return (Socket) ret;
 }