Skip to content

Commit ef9a0d2

Browse files
committed
Fixes
1 parent 4ea8a03 commit ef9a0d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/zend_alloc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2087,8 +2087,9 @@ static size_t zend_mm_get_huge_block_size(zend_mm_heap *heap, void *ptr ZEND_FIL
20872087
while (list != NULL) {
20882088
ZEND_MM_UNPOISON(list, sizeof(zend_mm_huge_list));
20892089
if (list->ptr == ptr) {
2090+
size_t size = list->size;
20902091
ZEND_MM_POISON(list, sizeof(zend_mm_huge_list));
2091-
return list->size;
2092+
return size;
20922093
}
20932094
zend_mm_huge_list *next = list->next;
20942095
ZEND_MM_POISON(list, sizeof(zend_mm_huge_list));

0 commit comments

Comments
 (0)