summaryrefslogtreecommitdiff
path: root/ext/ftp
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2003-02-13 22:20:21 +0000
committerSara Golemon <pollita@php.net>2003-02-13 22:20:21 +0000
commita9e1b5f641c9ffe320f64f888863ed61a2c8930c (patch)
treeeec73dad71b548aacb6430357f77dfa329fc4bc6 /ext/ftp
parent0b2216e03d181d648fd52a2e2f0fac9cf66681a5 (diff)
downloadphp-git-a9e1b5f641c9ffe320f64f888863ed61a2c8930c.tar.gz
MFB(r-1.68.2.5) Bug 22052
Diffstat (limited to 'ext/ftp')
-rw-r--r--ext/ftp/ftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index b980d69708..bce51ab6ee 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -1646,9 +1646,11 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
return ret;
bail:
- data_close(ftp, data);
+ if (data)
+ data_close(ftp, data);
fclose(tmpfp);
- efree(ret);
+ if (ret)
+ efree(ret);
return NULL;
}
/* }}} */