Skip to content

Commit 551c4a3

Browse files
authored
Use OBJ_RELEASE instead of ZVAL_OBJ + zval_ptr_dtor in php_dom.c (#15052)
1 parent d14b936 commit 551c4a3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/dom/php_dom.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,9 +1488,7 @@ static void dom_object_namespace_node_free_storage(zend_object *object)
14881488
{
14891489
dom_object_namespace_node *intern = php_dom_namespace_node_obj_from_obj(object);
14901490
if (intern->parent_intern != NULL) {
1491-
zval tmp;
1492-
ZVAL_OBJ(&tmp, &intern->parent_intern->std);
1493-
zval_ptr_dtor(&tmp);
1491+
OBJ_RELEASE(&intern->parent_intern->std);
14941492
}
14951493
dom_objects_free_storage(object);
14961494
}

0 commit comments

Comments
 (0)