@@ -319,7 +319,7 @@ ZEND_API void destroy_zend_class(zval *zv)
319
319
zend_string_release_ex (prop_info -> doc_comment , 0 );
320
320
}
321
321
if (prop_info -> attributes ) {
322
- zend_array_release (prop_info -> attributes );
322
+ zend_hash_release (prop_info -> attributes );
323
323
}
324
324
zend_type_release (prop_info -> type , /* persistent */ 0 );
325
325
}
@@ -337,7 +337,7 @@ ZEND_API void destroy_zend_class(zval *zv)
337
337
zend_string_release_ex (c -> doc_comment , 0 );
338
338
}
339
339
if (c -> attributes ) {
340
- zend_array_release (c -> attributes );
340
+ zend_hash_release (c -> attributes );
341
341
}
342
342
}
343
343
} ZEND_HASH_FOREACH_END ();
@@ -358,7 +358,7 @@ ZEND_API void destroy_zend_class(zval *zv)
358
358
zend_string_release_ex (ce -> info .user .doc_comment , 0 );
359
359
}
360
360
if (ce -> attributes ) {
361
- zend_array_release (ce -> attributes );
361
+ zend_hash_release (ce -> attributes );
362
362
}
363
363
364
364
if (ce -> num_traits > 0 ) {
@@ -412,7 +412,7 @@ ZEND_API void destroy_zend_class(zval *zv)
412
412
zend_string_release_ex (c -> doc_comment , 1 );
413
413
}
414
414
if (c -> attributes ) {
415
- zend_array_release (c -> attributes );
415
+ zend_hash_release (c -> attributes );
416
416
}
417
417
}
418
418
free (c );
@@ -428,6 +428,9 @@ ZEND_API void destroy_zend_class(zval *zv)
428
428
if (ce -> properties_info_table ) {
429
429
free (ce -> properties_info_table );
430
430
}
431
+ if (ce -> attributes ) {
432
+ zend_hash_release (ce -> attributes );
433
+ }
431
434
free (ce );
432
435
break ;
433
436
}
@@ -497,7 +500,7 @@ ZEND_API void destroy_op_array(zend_op_array *op_array)
497
500
zend_string_release_ex (op_array -> doc_comment , 0 );
498
501
}
499
502
if (op_array -> attributes ) {
500
- zend_array_release (op_array -> attributes );
503
+ zend_hash_release (op_array -> attributes );
501
504
}
502
505
if (op_array -> live_range ) {
503
506
efree (op_array -> live_range );
0 commit comments