stas Fri, 17 Jul 2009 00:57:46 +0000
URL: http://svn.php.net/viewvc?view=revision&revision=284221
Changed paths:
U php/php-src/trunk/Zend/zend_ini.c
Log:
fix memory leak
Modified: php/php-src/trunk/Zend/zend_ini.c
===================================================================
--- php/php-src/trunk/Zend/zend_ini.c 2009-07-17 00:57:28 UTC (rev 284220)
+++ php/php-src/trunk/Zend/zend_ini.c 2009-07-17 00:57:46 UTC (rev 284221)
@@ -316,8 +316,11 @@
}
if (EG(modified_ini_directives)) {
- zend_restore_ini_entry_cb(ini_entry, stage TSRMLS_CC);
- zend_hash_del(EG(modified_ini_directives), name, name_length);
+ if(zend_restore_ini_entry_cb(ini_entry, stage TSRMLS_CC) == 0) {
+ zend_hash_del(EG(modified_ini_directives), name,
name_length);
+ } else {
+ return FAILURE;
+ }
}
return SUCCESS;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php