From d4aa8594a34f1ce449e6815bcb3feea4b545c08b Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 29 Aug 2001 08:56:26 +0000 Subject: [PATCH] Fix segfault (should free act.buf not act.name, because the latter might not point at the start of the former). Cheers Minefield :-) git-svn-id: svn://svn.tartarus.org/sgt/putty@1224 cda61777-01e9-0310-a592-d414129be87e --- scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scp.c b/scp.c index b741092d..f92485db 100644 --- a/scp.c +++ b/scp.c @@ -1883,7 +1883,7 @@ static void sink(char *targ, char *src) } (void) scp_finish_filerecv(); sfree(destfname); - sfree(act.name); + sfree(act.buf); } } -- 2.11.0