svn: php/php-src/trunk/Zend/ zend_ini.c
| From: | Stanislav Malyshev | Date: | Fri, 17 Jul 2009 00:57:46 +0000 |
| Subject: | svn: php/php-src/trunk/Zend/ zend_ini.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-59531@lists.php.net to get a copy of this message | ||
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;