Skip to content

Commit 9360955

Browse files
committed
Assert that all type sources have been removed when ref is dtored
1 parent 40540b7 commit 9360955

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_variables.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ static void ZEND_FASTCALL zend_string_destroy(zend_string *str)
7070

7171
static void ZEND_FASTCALL zend_reference_destroy(zend_reference *ref)
7272
{
73+
ZEND_ASSERT(!ZEND_REF_HAS_TYPE_SOURCES(ref));
7374
i_zval_ptr_dtor(&ref->val);
7475
efree_size(ref, sizeof(zend_reference));
7576
}

0 commit comments

Comments
 (0)