mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-21 22:28:37 -05:00
Double-free on mkdir error, spotted by Brian Hartsock.
[originally from svn r5929]
This commit is contained in:
parent
a7097f7e86
commit
9565f4f550
1
psftp.c
1
psftp.c
@ -1399,7 +1399,6 @@ int sftp_cmd_mkdir(struct sftp_command *cmd)
|
|||||||
|
|
||||||
if (!result) {
|
if (!result) {
|
||||||
printf("mkdir %s: %s\n", dir, fxp_error());
|
printf("mkdir %s: %s\n", dir, fxp_error());
|
||||||
sfree(dir);
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else
|
} else
|
||||||
printf("mkdir %s: OK\n", dir);
|
printf("mkdir %s: OK\n", dir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user