- mpech@cvs.openbsd.org 2002/03/19 06:32:56
     [sftp-int.c]
     use xfree() after xstrdup().

     markus@ ok
diff --git a/sftp-int.c b/sftp-int.c
index 5de9389..46cbd4a 100644
--- a/sftp-int.c
+++ b/sftp-int.c
@@ -26,7 +26,7 @@
 /* XXX: recursive operations */
 
 #include "includes.h"
-RCSID("$OpenBSD: sftp-int.c,v 1.44 2002/02/13 00:59:23 djm Exp $");
+RCSID("$OpenBSD: sftp-int.c,v 1.45 2002/03/19 06:32:56 mpech Exp $");
 
 #include "buffer.h"
 #include "xmalloc.h"
@@ -886,8 +886,10 @@
 				    file2);
 
 			parse_dispatch_command(conn, cmd, &pwd);
+			xfree(dir);
 			return;
 		}
+		xfree(dir);
 	}
 #if HAVE_SETVBUF
 	setvbuf(stdout, NULL, _IOLBF, 0);