1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Use OBJ_RELEASE instead of ZVAL_OBJ + zval_ptr_dtor in php_dom.c (#15052)

This commit is contained in:
Niels Dossche
2024-07-21 16:57:05 +02:00
committed by GitHub
parent d14b936d4f
commit 551c4a3bf8

View File

@@ -1488,9 +1488,7 @@ static void dom_object_namespace_node_free_storage(zend_object *object)
{
dom_object_namespace_node *intern = php_dom_namespace_node_obj_from_obj(object);
if (intern->parent_intern != NULL) {
zval tmp;
ZVAL_OBJ(&tmp, &intern->parent_intern->std);
zval_ptr_dtor(&tmp);
OBJ_RELEASE(&intern->parent_intern->std);
}
dom_objects_free_storage(object);
}