From 1a1ed1ff710017cf62982f57eca71a56860549bc Mon Sep 17 00:00:00 2001 From: Simon Tatham 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 :-) [originally from svn r1224] --- 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); } }