From: jacob Date: Wed, 8 Jun 2005 15:14:47 +0000 (+0000) Subject: Double-free on mkdir error, spotted by Brian Hartsock. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/8e441086bf71318f2af96ef9c64a5f35c517c101 Double-free on mkdir error, spotted by Brian Hartsock. git-svn-id: svn://svn.tartarus.org/sgt/putty@5929 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/psftp.c b/psftp.c index ba3266b0..53b6616d 100644 --- 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);