X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=psftp.c;h=8ed2343aa14df3b8c9086fea2f74cca33434abc1;hb=0cc6fb8bfea07360afeac83ba67aceffb56499c8;hp=6dd733d9385ab990355d915db3f6cf41e4386af6;hpb=acf38797ebbcc9c86974f4ada47160ab7d5e5c12;p=PuTTY.git diff --git a/psftp.c b/psftp.c index 6dd733d9..8ed2343a 100644 --- a/psftp.c +++ b/psftp.c @@ -1258,7 +1258,9 @@ int sftp_general_get(struct sftp_command *cmd, int restart, int multiple) fname = canonify(origwfname); if (!fname) { + sftp_finish_wildcard_matching(swcm); printf("%s: canonify: %s\n", origwfname, fxp_error()); + sfree(origwfname); sfree(unwcfname); return 0; } @@ -2720,6 +2722,7 @@ static int psftp_connect(char *userhost, char *user, int portnumber) /* Use `host' as a bare hostname. */ conf_set_str(conf, CONF_host, host); } + conf_free(conf2); } else { /* Patch in hostname `host' to session details. */ conf_set_str(conf, CONF_host, host);