Skip to content

Commit 1b8bf05

Browse files
committed
Don't keep dangling pointer.
1 parent 97b8536 commit 1b8bf05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_alloc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,6 +2147,7 @@ void zend_mm_shutdown(zend_mm_heap *heap, int full, int silent)
21472147

21482148
/* free huge blocks */
21492149
list = heap->huge_list;
2150+
heap->huge_list = NULL;
21502151
while (list) {
21512152
zend_mm_huge_list *q = list;
21522153
list = list->next;

0 commit comments

Comments
 (0)