Skip to content

Commit bdca73c

Browse files
committed
ext/hash: Remove incorrect zval_ptr_dtor
1 parent 8516ae8 commit bdca73c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/hash/hash.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,6 @@ PHP_FUNCTION(hash_copy)
850850
RETVAL_OBJ(Z_OBJ_HANDLER_P(zhash, clone_obj)(Z_OBJ_P(zhash)));
851851

852852
if (php_hashcontext_from_object(Z_OBJ_P(return_value))->context == NULL) {
853-
zval_ptr_dtor(return_value);
854-
855853
zend_throw_error(NULL, "Cannot copy hash");
856854
RETURN_THROWS();
857855
}

0 commit comments

Comments
 (0)