Skip to content

Commit 91425d3

Browse files
committed
Fix leaking prop_info.attributes of internal classes
1 parent ab5b3e6 commit 91425d3

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
@@ -455,6 +455,9 @@ ZEND_API void destroy_zend_class(zval *zv)
455455
if (prop_info->ce == ce) {
456456
zend_string_release(prop_info->name);
457457
zend_type_release(prop_info->type, /* persistent */ 1);
458+
if (prop_info->attributes) {
459+
zend_hash_release(prop_info->attributes);
460+
}
458461
free(prop_info);
459462
}
460463
} ZEND_HASH_FOREACH_END();

0 commit comments

Comments
 (0)