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)) {
|
if (arr != &EG(symbol_table)) {
|
||||||
/* break possible cycles */
|
/* break possible cycles */
|
||||||
GC_TYPE(arr) = IS_NULL;
|
GC_TYPE(arr) = IS_NULL;
|
||||||
zend_hash_destroy(&arr->ht);
|
|
||||||
GC_REMOVE_FROM_BUFFER(arr);
|
GC_REMOVE_FROM_BUFFER(arr);
|
||||||
|
zend_hash_destroy(&arr->ht);
|
||||||
efree(arr);
|
efree(arr);
|
||||||
}
|
}
|
||||||
break;
|
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)) {
|
if (arr != &EG(symbol_table)) {
|
||||||
/* break possible cycles */
|
/* break possible cycles */
|
||||||
GC_TYPE(arr) = IS_NULL;
|
GC_TYPE(arr) = IS_NULL;
|
||||||
zend_hash_destroy(&arr->ht);
|
|
||||||
GC_REMOVE_FROM_BUFFER(arr);
|
GC_REMOVE_FROM_BUFFER(arr);
|
||||||
|
zend_hash_destroy(&arr->ht);
|
||||||
efree(arr);
|
efree(arr);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue