Skip to content

Commit 5ed58a7

Browse files
committed
Bump
1 parent 7dd6778 commit 5ed58a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Zend/zend_alloc.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,8 +1151,9 @@ static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count ZEND_F
11511151
len = ZEND_MM_PAGES - ZEND_MM_FIRST_PAGE;
11521152
goto found;
11531153
} else {
1154+
zend_mm_chunk *next_chunk = chunk->next;
11541155
ZEND_MM_POISON_CHUNK_HDR(chunk, heap);
1155-
chunk = chunk->next;
1156+
chunk = next_chunk;
11561157
ZEND_MM_UNPOISON_CHUNK_HDR(chunk);
11571158
steps++;
11581159
}
@@ -2330,8 +2331,9 @@ ZEND_API size_t zend_mm_gc(zend_mm_heap *heap)
23302331
chunk = next_chunk;
23312332
ZEND_MM_UNPOISON_CHUNK_HDR(chunk);
23322333
} else {
2334+
zend_mm_chunk *next_chunk = chunk->next;
23332335
ZEND_MM_POISON_CHUNK_HDR(chunk, heap);
2334-
chunk = chunk->next;
2336+
chunk = next_chunk;
23352337
ZEND_MM_UNPOISON_CHUNK_HDR(chunk);
23362338
}
23372339
} while (chunk != heap->main_chunk);

0 commit comments

Comments
 (0)