summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2002-03-19 06:32:57 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2002-03-19 06:32:57 +0000
commit83c5280f739f84f8b822a82506d1d80f766c112a (patch)
treee855d7e33b99350beebd8e45e5b8402572d52181 /usr.bin
parentd73f49ffe987c74c46cd8f8af9ebdc216d875f8f (diff)
use xfree() after xstrdup().
markus@ ok
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sftp-int.c4
1 files changed, 3 insertions, 1 deletions
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 <glob.h>
@@ -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);