From 940f70c47b9d2929712312bcd1797b87efcb2add Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sun, 3 Dec 2006 13:58:54 +0000 Subject: [PATCH] fix leaks --- ext/ftp/ftp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 60a6b78da2..8fb9082b18 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**)); } -- 2.40.0