summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-03-09 11:19:05 +0800
committerXinchen Hui <laruence@php.net>2015-03-09 11:19:05 +0800
commit96f7a33df6e72dc855b82140ab10ddeaaf19b20c (patch)
treefe7355054be216794039feb1cdedaa7e45600979 /Zend/zend_alloc.c
parent69d183dd1926c4f1b35f9303e6960732f71e29de (diff)
downloadphp-git-96f7a33df6e72dc855b82140ab10ddeaaf19b20c.tar.gz
Temorary fix for phpdbg segfault while use zend_mm_set_custom_handlers
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r--Zend/zend_alloc.c3
1 files changed, 3 insertions, 0 deletions
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