Double-free on mkdir error, spotted by Brian Hartsock.
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 8 Jun 2005 15:14:47 +0000 (15:14 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 8 Jun 2005 15:14:47 +0000 (15:14 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@5929 cda61777-01e9-0310-a592-d414129be87e

psftp.c

diff --git a/psftp.c b/psftp.c
index ba3266b..53b6616 100644 (file)
--- a/psftp.c
+++ b/psftp.c
@@ -1399,7 +1399,6 @@ int sftp_cmd_mkdir(struct sftp_command *cmd)
 
        if (!result) {
            printf("mkdir %s: %s\n", dir, fxp_error());
-           sfree(dir);
            ret = 0;
        } else
            printf("mkdir %s: OK\n", dir);