com php-src: Fixed memleak in alloc_globals_ctor: Zend/ zend_alloc.c

From: Date: Sat, 28 Feb 2015 05:14:39 +0000
Subject: com php-src: Fixed memleak in alloc_globals_ctor: Zend/ zend_alloc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85201@lists.php.net to get a copy of this message
Commit: 85316b4bf02f75e6a89efb8b10416a0505a2ae4d Author: Reeze Xia <reeze@php.net> Sat, 28 Feb 2015 13:14:39 +0800 Parents: ed102533116d7771bf2f8fd5d0e4f345b38b1da5 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=85316b4bf02f75e6a89efb8b10416a0505a2ae4d Log: Fixed memleak in alloc_globals_ctor This free operation is missed when new MM was introduced in master. Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index ad31d63..7099568 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -1950,6 +1950,9 @@ void zend_mm_shutdown(zend_mm_heap *heap, int full, int silent) #if ZEND_MM_CUSTOM if (heap->use_custom_heap) { + if (full) { + free(heap); + } return; } #endif

« previous php.cvs (#85201) next »