From: simon Date: Wed, 29 Aug 2001 08:56:26 +0000 (+0000) Subject: Fix segfault (should free act.buf not act.name, because the latter X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/d4aa8594a34f1ce449e6815bcb3feea4b545c08b?hp=b3dcd9b2e83d61b9441c95ccfb784ed718173244 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 --- 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); } }