From 9e630cfbe03c0911e07bc4e4a01f766398f1af1b Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sun, 21 Jul 2024 15:35:57 +0200 Subject: [PATCH] Use OBJ_RELEASE instead of ZVAL_OBJ + zval_ptr_dtor in php_dom.c --- 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 52e0cbf1e4b00..828e1bd1af62f 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); }