diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-12-03 13:59:11 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-12-03 13:59:11 +0000 |
| commit | e1a63af85bf03e9d55d1c19fad60af00d3514a69 (patch) | |
| tree | 70e6814daa28335cf3ebe82f3098688497a331f2 | |
| parent | 065be7056dbfa615d7db5729eb43eec024907c84 (diff) | |
| download | php-git-e1a63af85bf03e9d55d1c19fad60af00d3514a69.tar.gz | |
MFH: fix leaks
| -rw-r--r-- | ext/ftp/ftp.c | 2 |
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**)); } |
