svn: php/php-src/branches/PHP_5_2/Zend/ zend_ini.c

From: Date: Fri, 17 Jul 2009 00:57:28 +0000
Subject: svn: php/php-src/branches/PHP_5_2/Zend/ zend_ini.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-59530@lists.php.net to get a copy of this message
stas Fri, 17 Jul 2009 00:57:28 +0000 URL: http://svn.php.net/viewvc?view=revision&revision=284220 Changed paths: U php/php-src/branches/PHP_5_2/Zend/zend_ini.c Log: fix memory leak Modified: php/php-src/branches/PHP_5_2/Zend/zend_ini.c =================================================================== --- php/php-src/branches/PHP_5_2/Zend/zend_ini.c 2009-07-17 00:54:03 UTC (rev 284219) +++ php/php-src/branches/PHP_5_2/Zend/zend_ini.c 2009-07-17 00:57:28 UTC (rev 284220) @@ -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;

« previous php.cvs (#59530) next »