зеркало из https://github.com/github/putty.git
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:
Родитель
808df44e54
Коммит
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);
|
||||
}
|
||||
|
||||
sfree(stat_name);
|
||||
close_wfile(f);
|
||||
if (wrerror) {
|
||||
run_err("%s: Write error", destfname);
|
||||
|
|
Загрузка…
Ссылка в новой задаче