Skip to content

Commit e1a63af

Browse files
committed
MFH: fix leaks
1 parent 065be70 commit e1a63af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/ftp/ftp.c

+2
Original file line numberDiff line numberDiff line change
@@ -1620,6 +1620,8 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
16201620

16211621
/* some servers don't open a ftp-data connection if the directory is empty */
16221622
if (ftp->resp == 226) {
1623+
ftp->data = data_close(ftp, data);
1624+
php_stream_close(tmpstream);
16231625
return ecalloc(1, sizeof(char**));
16241626
}
16251627

0 commit comments

Comments
 (0)