mirror of
https://github.com/php/php-src.git
synced 2024-09-24 11:27:28 +00:00
don't leak on error
This commit is contained in:
parent
cbadf38682
commit
7a6b75e8ac
@ -642,6 +642,7 @@ static inline int php_tcp_sockop_connect(php_stream *stream, php_netstream_data_
|
||||
if (xparam->want_errortext) {
|
||||
spprintf(&xparam->outputs.error_text, 0, "local_addr context option is not a string.");
|
||||
}
|
||||
efree(host);
|
||||
return -1;
|
||||
}
|
||||
bindto = parse_ip_address_ex(Z_STRVAL_PP(tmpzval), Z_STRLEN_PP(tmpzval), &bindport, xparam->want_errortext, &xparam->outputs.error_text TSRMLS_CC);
|
||||
|
Loading…
Reference in New Issue
Block a user