Skip to content

Commit a454107

Browse files
committed
dtor some things
1 parent 535aaa6 commit a454107

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_compile.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,6 +1930,7 @@ void zend_do_function_return_hint(const znode *return_hint TSRMLS_DC) {
19301930
CG(active_op_array)->return_hint.class_name_len = Z_STRLEN(return_hint->u.constant);
19311931
CG(active_op_array)->return_hint.class_name = zend_new_interned_string
19321932
(Z_STRVAL(return_hint->u.constant), Z_STRLEN(return_hint->u.constant)+1, 1 TSRMLS_CC);
1933+
zval_dtor((zval*)&return_hint->u.constant);
19331934
} else {
19341935
CG(active_op_array)->return_hint.type = Z_TYPE(return_hint->u.constant);
19351936
}
@@ -1938,6 +1939,7 @@ void zend_do_function_return_hint(const znode *return_hint TSRMLS_DC) {
19381939
CG(active_op_array)->return_hint.class_name_len = Z_STRLEN(return_hint->u.constant);
19391940
CG(active_op_array)->return_hint.class_name = zend_new_interned_string
19401941
(Z_STRVAL(return_hint->u.constant), Z_STRLEN(return_hint->u.constant)+1, 1 TSRMLS_CC);
1942+
zval_dtor((zval*)&return_hint->u.constant);
19411943
}
19421944
}
19431945
} /* }}} */

0 commit comments

Comments
 (0)