From: Xinchen Hui Date: Sun, 8 Mar 2015 16:18:54 +0000 (+0800) Subject: Fixed memleak while using custom mm X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~764 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5eabd979ffb2f0edb996baf91100197066a81a09;p=php Fixed memleak while using custom mm --- diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index b066eb0b1f..6701ca4902 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) { + heap->_free(heap); + } return; } #endif