From 551c4a3bf82203439832a078f39152d20310df91 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sun, 21 Jul 2024 16:57:05 +0200 Subject: [PATCH] Use OBJ_RELEASE instead of ZVAL_OBJ + zval_ptr_dtor in php_dom.c (#15052) --- ext/dom/php_dom.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index 52e0cbf1e4b..828e1bd1af6 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -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); }