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

ext/hash: Remove incorrect zval_ptr_dtor

This commit is contained in:
Niels Dossche
2025-07-17 20:22:10 +02:00
parent 8516ae86d7
commit bdca73cc14

View File

@@ -850,8 +850,6 @@ PHP_FUNCTION(hash_copy)
RETVAL_OBJ(Z_OBJ_HANDLER_P(zhash, clone_obj)(Z_OBJ_P(zhash)));
if (php_hashcontext_from_object(Z_OBJ_P(return_value))->context == NULL) {
zval_ptr_dtor(return_value);
zend_throw_error(NULL, "Cannot copy hash");
RETURN_THROWS();
}