summaryrefslogtreecommitdiff
path: root/ext/ftp
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-12-03 13:59:11 +0000
committerAntony Dovgal <tony2001@php.net>2006-12-03 13:59:11 +0000
commite1a63af85bf03e9d55d1c19fad60af00d3514a69 (patch)
tree70e6814daa28335cf3ebe82f3098688497a331f2 /ext/ftp
parent065be7056dbfa615d7db5729eb43eec024907c84 (diff)
downloadphp-git-e1a63af85bf03e9d55d1c19fad60af00d3514a69.tar.gz
MFH: fix leaks
Diffstat (limited to 'ext/ftp')
-rw-r--r--ext/ftp/ftp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index a3601c0edd..c3a1126cae 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -1620,6 +1620,8 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
/* some servers don't open a ftp-data connection if the directory is empty */
if (ftp->resp == 226) {
+ ftp->data = data_close(ftp, data);
+ php_stream_close(tmpstream);
return ecalloc(1, sizeof(char**));
}