We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d15e9f7 commit c889bf1Copy full SHA for c889bf1
Zend/zend_opcode.c
@@ -152,12 +152,7 @@ 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
-
156
- if (function->common.attributes) {
157
- zend_hash_destroy(function->common.attributes);
158
- free(function->common.attributes);
159
- function->common.attributes = NULL;
160
- }
+ zend_hash_release(function->common.attributes);
161
162
/* For methods this will be called explicitly. */
163
if (!function->common.scope) {
0 commit comments