Skip to content

Commit c3c9fe4

Browse files
committed
Re-add check for non-NULL
1 parent c889bf1 commit c3c9fe4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Zend/zend_opcode.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ ZEND_API void zend_function_dtor(zval *zv)
152152
ZEND_ASSERT(function->type == ZEND_INTERNAL_FUNCTION);
153153
ZEND_ASSERT(function->common.function_name);
154154
zend_string_release_ex(function->common.function_name, 1);
155-
zend_hash_release(function->common.attributes);
155+
156+
if (function->common.attributes) {
157+
zend_hash_release(function->common.attributes);
158+
function->common.attributes = NULL;
159+
}
156160

157161
/* For methods this will be called explicitly. */
158162
if (!function->common.scope) {

0 commit comments

Comments
 (0)