Skip to content

Commit 0d0886f

Browse files
committed
Test
1 parent 8b7b4b0 commit 0d0886f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ static void stderr_last_error(char *msg)
514514

515515
static void zend_mm_munmap(void *addr, size_t size)
516516
{
517+
ZEND_MM_UNPOISON(addr, size);
517518
#ifdef _WIN32
518519
if (VirtualFree(addr, 0, MEM_RELEASE) == 0) {
519520
/** ERROR_INVALID_ADDRESS is expected when addr is not range start address */
@@ -886,7 +887,6 @@ static void zend_mm_chunk_free(zend_mm_heap *heap, void *addr, size_t size)
886887
return;
887888
}
888889
#endif
889-
ZEND_MM_UNPOISON(addr, size);
890890
zend_mm_munmap(addr, size);
891891
}
892892

0 commit comments

Comments
 (0)