Control of 'addr' is now handed over to {platform_,}new_connection() and
[u/mdw/putty] / ssh.c
diff --git a/ssh.c b/ssh.c
index 8cb5a56..23602f6 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -2169,7 +2169,6 @@ static const char *connect_to_host(Ssh ssh, char *host, int port,
     ssh->fn = &fn_table;
     ssh->s = new_connection(addr, *realhost, port,
                            0, 1, nodelay, (Plug) ssh, &ssh->cfg);
-    sk_addr_free(addr);
     if ((err = sk_socket_error(ssh->s)) != NULL) {
        ssh->s = NULL;
        return err;