summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormouring <mouring@cvs.openbsd.org>2003-04-14 21:31:28 +0000
committermouring <mouring@cvs.openbsd.org>2003-04-14 21:31:28 +0000
commit888d7082841b52797c3c0e80038d7b50bfcb69a3 (patch)
tree3a008655fdf301647e847015716ea8cf81c8576c
parent24449496361b24fee3c78c8eb8fc59f6160ee9de (diff)
Missing globfree(&g) in process_put() spotted by Vince Brimhall
<VBrimhall@novell.com>. ok@ Theo
-rw-r--r--usr.bin/ssh/sftp-int.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/sftp-int.c b/usr.bin/ssh/sftp-int.c
index 13ec6f9c05a..5b429658031 100644
--- a/usr.bin/ssh/sftp-int.c
+++ b/usr.bin/ssh/sftp-int.c
@@ -25,7 +25,7 @@
/* XXX: recursive operations */
#include "includes.h"
-RCSID("$OpenBSD: sftp-int.c,v 1.57 2003/03/05 22:33:43 markus Exp $");
+RCSID("$OpenBSD: sftp-int.c,v 1.58 2003/04/14 21:31:27 mouring Exp $");
#include <glob.h>
@@ -569,6 +569,7 @@ out:
xfree(abs_dst);
if (tmp_dst)
xfree(tmp_dst);
+ globfree(&g);
return(err);
}