From: Sara Golemon Date: Thu, 13 Feb 2003 22:20:21 +0000 (+0000) Subject: MFB(r-1.68.2.5) Bug 22052 X-Git-Tag: RELEASE_0_5~1028 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9e1b5f641c9ffe320f64f888863ed61a2c8930c;p=php MFB(r-1.68.2.5) Bug 22052 --- 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; } /* }}} */