From d226659a1224b6a54c2bcbcd209737995cd0c267 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 1 Mar 2001 11:49:23 +0000 Subject: [PATCH] Fix a potential segfault [originally from svn r958] --- psftp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/psftp.c b/psftp.c index deef6d83..0cf01bee 100644 --- 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; }