From 5eabd979ffb2f0edb996baf91100197066a81a09 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 9 Mar 2015 00:18:54 +0800 Subject: [PATCH] Fixed memleak while using custom mm --- Zend/zend_alloc.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.50.1