From: Simon Tatham 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-Tag: 0.52~214 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=1a1ed1ff710017cf62982f57eca71a56860549bc;p=PuTTY.git Fix segfault (should free act.buf not act.name, because the latter might not point at the start of the former). Cheers Minefield :-) [originally from svn r1224] --- 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); } }