From 83c5280f739f84f8b822a82506d1d80f766c112a Mon Sep 17 00:00:00 2001 From: Mike Pechkin Date: Tue, 19 Mar 2002 06:32:57 +0000 Subject: use xfree() after xstrdup(). markus@ ok --- usr.bin/ssh/sftp-int.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/ssh/sftp-int.c b/usr.bin/ssh/sftp-int.c index d986c76f7bd..9f22ed0454e 100644 --- a/usr.bin/ssh/sftp-int.c +++ b/usr.bin/ssh/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 @@ -888,8 +888,10 @@ interactive_loop(int fd_in, int fd_out, char *file1, char *file2) file2); parse_dispatch_command(conn, cmd, &pwd); + xfree(dir); return; } + xfree(dir); } setvbuf(stdout, NULL, _IOLBF, 0); setvbuf(infile, NULL, _IOLBF, 0); -- cgit v1.2.3