version 1.23.6.1, 2013/11/08 05:52:21 |
version 1.24, 2013/05/17 00:13:14 |
|
|
{ |
{ |
struct SFTP_OPENDIR *r; |
struct SFTP_OPENDIR *r; |
|
|
r = xcalloc(1, sizeof(*r)); |
r = xmalloc(sizeof(*r)); |
|
|
if (do_readdir(cur.conn, (char *)path, &r->dir)) { |
if (do_readdir(cur.conn, (char *)path, &r->dir)) { |
xfree(r); |
free(r); |
return(NULL); |
return(NULL); |
} |
} |
|
|
|
|
fudge_closedir(struct SFTP_OPENDIR *od) |
fudge_closedir(struct SFTP_OPENDIR *od) |
{ |
{ |
free_sftp_dirents(od->dir); |
free_sftp_dirents(od->dir); |
xfree(od); |
free(od); |
} |
} |
|
|
static int |
static int |