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;
        }


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to