Skip to content

Commit 9a1c9f0

Browse files
committed
fixes memleak in zend_type_release
1 parent 185a1ad commit 9a1c9f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Zend/zend_opcode.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ 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);
123+
}
121124
} else if (ZEND_TYPE_HAS_NAME(*list_type)) {
122125
zend_string_release(ZEND_TYPE_NAME(*list_type));
123126
}

0 commit comments

Comments
 (0)