Skip to content

Commit d11099a

Browse files
committed
ext/socket: Remove incorrect zval_ptr_dtor
1 parent bdca73c commit d11099a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/sockets/sockets.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,7 +2511,6 @@ PHP_FUNCTION(socket_addrinfo_bind)
25112511
}
25122512
default:
25132513
close(php_sock->bsd_socket);
2514-
zval_ptr_dtor(return_value);
25152514
zend_argument_value_error(1, "must be one of AF_UNIX, AF_INET, or AF_INET6");
25162515
RETURN_THROWS();
25172516
}
@@ -2575,7 +2574,6 @@ PHP_FUNCTION(socket_addrinfo_connect)
25752574
default:
25762575
zend_argument_value_error(1, "socket type must be one of AF_UNIX, AF_INET, or AF_INET6");
25772576
close(php_sock->bsd_socket);
2578-
zval_ptr_dtor(return_value);
25792577
RETURN_THROWS();
25802578
}
25812579

0 commit comments

Comments
 (0)