Skip to content

Commit d1ca6c2

Browse files
committed
only release the string if it is not interned
1 parent 8214a9f commit d1ca6c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Zend/zend_API.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2905,7 +2905,9 @@ ZEND_API void zend_type_free_interned_trees(void) {
29052905
pefree(tree->compound.types, 1);
29062906
} else {
29072907
if (ZEND_TYPE_HAS_NAME(tree->simple_type)) {
2908-
zend_string_release_ex(ZEND_TYPE_NAME(tree->simple_type), 1);
2908+
if (!ZSTR_IS_INTERNED(ZEND_TYPE_NAME(tree->simple_type))) {
2909+
zend_string_release_ex(ZEND_TYPE_NAME(tree->simple_type), 1);
2910+
}
29092911
}
29102912
}
29112913
pefree(tree, 1);

0 commit comments

Comments
 (0)