Fix for `slow-startup-printer': use PRINTER_INFO_4 on NT-class systems, which
[sgt/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;
 }