summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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;
}