]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix a potential segfault
authorSimon Tatham <anakin@pobox.com>
Thu, 1 Mar 2001 11:49:23 +0000 (11:49 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 1 Mar 2001 11:49:23 +0000 (11:49 +0000)
[originally from svn r958]

psftp.c

diff --git a/psftp.c b/psftp.c
index deef6d83ee29c0fc3aa64eda37c9d4d322f06c14..0cf01bee21bdedee4728691a257597e13884d23a 100644 (file)
--- a/psftp.c
+++ b/psftp.c
@@ -406,7 +406,6 @@ int sftp_cmd_put(struct sftp_command *cmd) {
     fp = fopen(fname, "rb");
     if (!fp) {
        printf("local: unable to open %s\n", fname);
-        fxp_close(fh);
        sfree(outfname);
        return 0;
     }