mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed segfault
This commit is contained in:
parent
6cc487df2c
commit
5fb31215cb
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ ZEND_API void _zval_dtor_func(zend_refcounted *p ZEND_FILE_LINE_DC)
|
|||
if (arr != &EG(symbol_table)) {
|
||||
/* break possible cycles */
|
||||
GC_TYPE(arr) = IS_NULL;
|
||||
zend_hash_destroy(&arr->ht);
|
||||
GC_REMOVE_FROM_BUFFER(arr);
|
||||
zend_hash_destroy(&arr->ht);
|
||||
efree(arr);
|
||||
}
|
||||
break;
|
||||
|
@ -104,8 +104,8 @@ ZEND_API void _zval_dtor_func_for_ptr(zend_refcounted *p ZEND_FILE_LINE_DC)
|
|||
if (arr != &EG(symbol_table)) {
|
||||
/* break possible cycles */
|
||||
GC_TYPE(arr) = IS_NULL;
|
||||
zend_hash_destroy(&arr->ht);
|
||||
GC_REMOVE_FROM_BUFFER(arr);
|
||||
zend_hash_destroy(&arr->ht);
|
||||
efree(arr);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue