]> granicus.if.org Git - php/commitdiff
Fixed bug #54957 (Memleak in alloc_globals_ctor)
authorDmitry Stogov <dmitry@php.net>
Tue, 31 May 2011 08:26:53 +0000 (08:26 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 31 May 2011 08:26:53 +0000 (08:26 +0000)
Zend/zend_alloc.c

index 4509a2b5f2c3871769aa577628bbc3117f0ed922..108309c1d7097af3bbd45bd1e34904c8d3c0f1de 100644 (file)
@@ -1602,6 +1602,9 @@ ZEND_API void zend_mm_shutdown(zend_mm_heap *heap, int full_shutdown, int silent
        int internal;
 
        if (!heap->use_zend_alloc) {
+               if (full_shutdown) {
+                       free(heap);
+               }
                return;
        }