Skip to content

Commit b52ed3c

Browse files
committed
Add missing call to GC_ADDREF() for function attributes
1 parent c3c9fe4 commit b52ed3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Zend/zend_compile.c

+3
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,9 @@ ZEND_API void function_add_ref(zend_function *function) /* {{{ */
10521052
if (function->common.function_name) {
10531053
zend_string_addref(function->common.function_name);
10541054
}
1055+
if (function->common.attributes) {
1056+
GC_ADDREF(function->common.attributes);
1057+
}
10551058
}
10561059
/* }}} */
10571060

0 commit comments

Comments
 (0)