Fix segfault (should free act.buf not act.name, because the latter
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 29 Aug 2001 08:56:26 +0000 (08:56 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 29 Aug 2001 08:56:26 +0000 (08:56 +0000)
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

diff --git a/scp.c b/scp.c
index b741092..f92485d 100644 (file)
--- 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);
     }
 }