Control of 'addr' is now handed over to {platform_,}new_connection() and
[u/mdw/putty] / unix / uxnet.c
index 7e5cf6f..ce062d8 100644 (file)
@@ -521,6 +521,8 @@ Socket sk_new(SockAddr addr, int port, int privport, int oobinline,
     uxsel_tell(ret);
     add234(sktree, ret);
 
+    sk_addr_free(addr);
+
     return (Socket) ret;
 }