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:
Simon Tatham 2013-07-29 17:47:33 +00:00
Родитель 808df44e54
Коммит a777103fd9
1 изменённых файлов: 0 добавлений и 1 удалений

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);