svn: /php/php-src/branches/PHP_5_4/Zend/ zend_alloc.c
| From: | Dmitry Stogov | Date: | Tue, 31 May 2011 11:38:31 +0000 |
| Subject: | svn: /php/php-src/branches/PHP_5_4/Zend/ zend_alloc.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-65067@lists.php.net to get a copy of this message | ||
dmitry Tue, 31 May 2011 11:38:31 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311654
Log:
MFH: Fixed bug #54957 (Memleak in alloc_globals_ctor)
Bug: http://bugs.php.net/54957 (Closed) Memleak in
alloc_globals_ctor
Changed paths:
U php/php-src/branches/PHP_5_4/Zend/zend_alloc.c
Modified: php/php-src/branches/PHP_5_4/Zend/zend_alloc.c
===================================================================
--- php/php-src/branches/PHP_5_4/Zend/zend_alloc.c 2011-05-31 11:36:57 UTC (rev 311653)
+++ php/php-src/branches/PHP_5_4/Zend/zend_alloc.c 2011-05-31 11:38:31 UTC (rev 311654)
@@ -1602,6 +1602,9 @@
int internal;
if (!heap->use_zend_alloc) {
+ if (full_shutdown) {
+ free(heap);
+ }
return;
}