Fix segfault (should free act.buf not act.name, because the latter
[u/mdw/putty] / 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);
     }
 }