Skip to content

Commit 34b11a7

Browse files
committed
Fix memory leaks in
Zend/tests/type_declarations/union_types/inheritance.phpt introduced by f24548e
1 parent f24548e commit 34b11a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/zend_persist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ uint32_t zend_accel_get_class_name_map_ptr(zend_string *type_name)
339339
static void zend_persist_type(zend_type *type) {
340340
if (ZEND_TYPE_HAS_LIST(*type)) {
341341
zend_type_list *list = ZEND_TYPE_LIST(*type);
342-
if (ZEND_TYPE_USES_ARENA(*type) || zend_accel_in_shm(type)) {
342+
if (ZEND_TYPE_USES_ARENA(*type) || zend_accel_in_shm(list)) {
343343
list = zend_shared_memdup_put(list, ZEND_TYPE_LIST_SIZE(list->num_types));
344344
ZEND_TYPE_FULL_MASK(*type) &= ~_ZEND_TYPE_ARENA_BIT;
345345
} else {

0 commit comments

Comments
 (0)