Control of 'addr' is now handed over to {platform_,}new_connection() and
[u/mdw/putty] / mac / mtcpnet.c
index 5415fbc..a8404b7 100644 (file)
@@ -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;
 }