From a9e1b5f641c9ffe320f64f888863ed61a2c8930c Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 13 Feb 2003 22:20:21 +0000 Subject: [PATCH] MFB(r-1.68.2.5) Bug 22052 --- ext/ftp/ftp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } /* }}} */ -- 2.50.1