We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c889bf1 commit c3c9fe4Copy full SHA for c3c9fe4
Zend/zend_opcode.c
@@ -152,7 +152,11 @@ ZEND_API void zend_function_dtor(zval *zv)
152
ZEND_ASSERT(function->type == ZEND_INTERNAL_FUNCTION);
153
ZEND_ASSERT(function->common.function_name);
154
zend_string_release_ex(function->common.function_name, 1);
155
- zend_hash_release(function->common.attributes);
+
156
+ if (function->common.attributes) {
157
+ zend_hash_release(function->common.attributes);
158
+ function->common.attributes = NULL;
159
+ }
160
161
/* For methods this will be called explicitly. */
162
if (!function->common.scope) {
0 commit comments