From: Stefan Esser Date: Sat, 27 Jul 2002 09:18:51 +0000 (+0000) Subject: Do not leak data connection. X-Git-Tag: dev~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70d71846249b7d4172ea4275d2e371b6f321edb9;p=php Do not leak data connection. --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 7ace9fe06d..de5ca14f4b 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -158,6 +158,8 @@ ftp_close(ftpbuf_t *ftp) return NULL; if (ftp->fd != -1) closesocket(ftp->fd); + if (ftp->data) + data_close(ftp->data); ftp_gc(ftp); free(ftp); return NULL;