Don't keep dangling pointer.

This commit is contained in:
Dmitry Stogov 2015-09-10 20:03:42 +03:00
parent 97b85364a5
commit 1b8bf059c4

View File

@ -2147,6 +2147,7 @@ void zend_mm_shutdown(zend_mm_heap *heap, int full, int silent)
/* free huge blocks */
list = heap->huge_list;
heap->huge_list = NULL;
while (list) {
zend_mm_huge_list *q = list;
list = list->next;