From: Dmitry Stogov Date: Tue, 31 May 2011 08:26:53 +0000 (+0000) Subject: Fixed bug #54957 (Memleak in alloc_globals_ctor) X-Git-Tag: php-5.5.0alpha1~2030 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0ba3e188155188944090e0659716f75ab6dda1d;p=php Fixed bug #54957 (Memleak in alloc_globals_ctor) --- diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 4509a2b5f2..108309c1d7 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -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; }