mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-15 01:57:40 -05:00
Remove one of the frees added in r9916. stat_name points to somewhere
within the same string that destfname points to the start of, so
freeing it causes at best a double-free of destfname and more likely a
free of something that isn't even the start of an allocated block.
[originally from svn r9974]
[r9916 == cc4f38df14
]
This commit is contained in:
1
pscp.c
1
pscp.c
@ -2026,7 +2026,6 @@ static void sink(char *targ, char *src)
|
|||||||
set_file_times(f, act.mtime, act.atime);
|
set_file_times(f, act.mtime, act.atime);
|
||||||
}
|
}
|
||||||
|
|
||||||
sfree(stat_name);
|
|
||||||
close_wfile(f);
|
close_wfile(f);
|
||||||
if (wrerror) {
|
if (wrerror) {
|
||||||
run_err("%s: Write error", destfname);
|
run_err("%s: Write error", destfname);
|
||||||
|
Reference in New Issue
Block a user