Fix a potential segfault
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 1 Mar 2001 11:49:23 +0000 (11:49 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 1 Mar 2001 11:49:23 +0000 (11:49 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@958 cda61777-01e9-0310-a592-d414129be87e

psftp.c

diff --git a/psftp.c b/psftp.c
index deef6d8..0cf01be 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;
     }