cvs: php4 /ext/ftp ftp.c

From: Date: Thu, 13 Feb 2003 22:20:21 +0000
Subject: cvs: php4 /ext/ftp ftp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18811@lists.php.net to get a copy of this message
pollita Thu Feb 13 17:20:21 2003 EDT Modified files: /php4/ext/ftp ftp.c Log: MFB(r-1.68.2.5) Bug 22052 Index: php4/ext/ftp/ftp.c diff -u php4/ext/ftp/ftp.c:1.77 php4/ext/ftp/ftp.c:1.78 --- php4/ext/ftp/ftp.c:1.77 Thu Feb 13 14:48:49 2003 +++ php4/ext/ftp/ftp.c Thu Feb 13 17:20:21 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ftp.c,v 1.77 2003/02/13 19:48:49 pollita Exp $ */ +/* $Id: ftp.c,v 1.78 2003/02/13 22:20:21 pollita Exp $ */ #include "php.h" @@ -1646,9 +1646,11 @@ return ret; bail: - data_close(ftp, data); + if (data) + data_close(ftp, data); fclose(tmpfp); - efree(ret); + if (ret) + efree(ret); return NULL; } /* }}} */

« previous php.cvs (#18811) next »