pajoye Wed Mar 14 11:37:35 2007 UTC
Modified files:
/php-src/ext/zip php_zip.c
Log:
- MFB: free rsrc on error in zip_read (old API)
http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.40&r2=1.41&diff_format=u
Index: php-src/ext/zip/php_zip.c
diff -u php-src/ext/zip/php_zip.c:1.40 php-src/ext/zip/php_zip.c:1.41
--- php-src/ext/zip/php_zip.c:1.40 Wed Mar 14 11:25:20 2007
+++ php-src/ext/zip/php_zip.c Wed Mar 14 11:37:35 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_zip.c,v 1.40 2007/03/14 11:25:20 pajoye Exp $ */
+/* $Id: php_zip.c,v 1.41 2007/03/14 11:37:35 pajoye Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -706,6 +706,7 @@
rsrc_int->index_current++;
ZEND_REGISTER_RESOURCE(return_value, zr_rsrc,
le_zip_entry);
} else {
+ efree(zr_rsrc);
RETURN_FALSE;
}
@@ -2102,7 +2103,7 @@
php_info_print_table_start();
php_info_print_table_row(2, "Zip", "enabled");
- php_info_print_table_row(2, "Extension Version","$Id: php_zip.c,v 1.40
2007/03/14 11:25:20 pajoye Exp $");
+ php_info_print_table_row(2, "Extension Version","$Id: php_zip.c,v 1.41
2007/03/14 11:37:35 pajoye Exp $");
php_info_print_table_row(2, "Zip version", "2.0.0");
php_info_print_table_row(2, "Libzip version", "0.7.1");
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php