Skip to content

Commit 90ca716

Browse files
committed
fixes zmm heap corruption under opcache
1 parent 9a1c9f0 commit 90ca716

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_opcode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ ZEND_API void zend_type_release(zend_type type, bool persistent) {
118118
zend_string_release(ZEND_TYPE_NAME(*sublist_type));
119119
}
120120
} ZEND_TYPE_LIST_FOREACH_END();
121-
if (!ZEND_TYPE_USES_ARENA(*list_type)) {
122-
pefree(ZEND_TYPE_LIST(*list_type), persistent);
121+
if (!ZEND_TYPE_USES_ARENA(*list_type) && persistent) {
122+
free(ZEND_TYPE_LIST(*list_type));
123123
}
124124
} else if (ZEND_TYPE_HAS_NAME(*list_type)) {
125125
zend_string_release(ZEND_TYPE_NAME(*list_type));

0 commit comments

Comments
 (0)