mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-28 15:24:49 -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 == cc4f38df148c84183efce644cd48f822233b962a]
This commit is contained in:
parent
808df44e54
commit
a777103fd9
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user