mirror of
https://github.com/nginx/nginx.git
synced 2025-06-16 00:21:02 +08:00
fix double free(), introduced in r3268
This commit is contained in:
parent
6cfcef3cbf
commit
eacd5d89b7
@ -750,7 +750,6 @@ ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u)
|
|||||||
ngx_free(p);
|
ngx_free(p);
|
||||||
|
|
||||||
if (h == NULL || h->h_addr_list[0] == NULL) {
|
if (h == NULL || h->h_addr_list[0] == NULL) {
|
||||||
ngx_free(p);
|
|
||||||
u->err = "host not found";
|
u->err = "host not found";
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user