diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-07 22:10:15 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-07 22:10:15 +0000 |
commit | c51b924a80a17d6cf47c25c2c118385d4ecc87c8 (patch) | |
tree | 140f5252d5b8bc0aca22225c2323781d6af6e78d /sftp-glob.c | |
parent | 8abe736dd7a27e4c2a42351287bacfd80ec42a7c (diff) |
- deraadt@cvs.openbsd.org 2002/07/04 04:15:33
[key.c monitor_wrap.c sftp-glob.c ssh-dss.c ssh-rsa.c]
patch memory leaks; grendel@zeitbombe.org
Diffstat (limited to 'sftp-glob.c')
-rw-r--r-- | sftp-glob.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sftp-glob.c b/sftp-glob.c index 2deb0eb49..2a7cf141c 100644 --- a/sftp-glob.c +++ b/sftp-glob.c | |||
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: sftp-glob.c,v 1.11 2002/06/30 21:59:45 deraadt Exp $"); | 26 | RCSID("$OpenBSD: sftp-glob.c,v 1.12 2002/07/04 04:15:33 deraadt Exp $"); |
27 | 27 | ||
28 | #include "buffer.h" | 28 | #include "buffer.h" |
29 | #include "bufaux.h" | 29 | #include "bufaux.h" |
@@ -51,8 +51,10 @@ fudge_opendir(const char *path) | |||
51 | 51 | ||
52 | r = xmalloc(sizeof(*r)); | 52 | r = xmalloc(sizeof(*r)); |
53 | 53 | ||
54 | if (do_readdir(cur.conn, (char *)path, &r->dir)) | 54 | if (do_readdir(cur.conn, (char *)path, &r->dir)) { |
55 | xfree(r); | ||
55 | return(NULL); | 56 | return(NULL); |
57 | } | ||
56 | 58 | ||
57 | r->offset = 0; | 59 | r->offset = 0; |
58 | 60 | ||