summaryrefslogtreecommitdiff
path: root/sftp-int.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-22 02:47:28 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-22 02:47:28 +0000
commitcb1f60efb552d1f12e4a92fdf4939faa18394f27 (patch)
tree6d82592347dbd584904245b4bd950584bf58d3dd /sftp-int.c
parent85520a67051b02a8c9975f048227c0531d25b243 (diff)
- mpech@cvs.openbsd.org 2002/03/19 06:32:56
[sftp-int.c] use xfree() after xstrdup(). markus@ ok
Diffstat (limited to 'sftp-int.c')
-rw-r--r--sftp-int.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sftp-int.c b/sftp-int.c
index 5de93891..46cbd4a1 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 @@ interactive_loop(int fd_in, int fd_out, char *file1, char *file2)
file2);
parse_dispatch_command(conn, cmd, &pwd);
+ xfree(dir);
return;
}
+ xfree(dir);
}
#if HAVE_SETVBUF
setvbuf(stdout, NULL, _IOLBF, 0);