`realhost', passed back from all the backend init functions, was
[u/mdw/putty] / scp.c
diff --git a/scp.c b/scp.c
index f414eb8..9a2624a 100644 (file)
--- a/scp.c
+++ b/scp.c
@@ -517,6 +517,7 @@ static void do_cmd(char *host, char *user, char *cmd)
     ssh_scp_init();
     if (verbose && realhost != NULL)
        tell_user(stderr, "Connected to %s\n", realhost);
+    sfree(realhost);
 }
 
 /*