mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Resolver: fixed memory leak for the "ipv4=off" case.
This change partially reverts 2a77754cd9fe to properly free rn->query. Found by Coverity (CID 1507244).
This commit is contained in:
parent
5178da4f94
commit
14341ce237
@ -3684,10 +3684,7 @@ ngx_resolver_create_name_query(ngx_resolver_t *r, ngx_resolver_node_t *rn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
rn->qlen = (u_short) len;
|
rn->qlen = (u_short) len;
|
||||||
|
|
||||||
if (r->ipv4) {
|
|
||||||
rn->query = p;
|
rn->query = p;
|
||||||
}
|
|
||||||
|
|
||||||
#if (NGX_HAVE_INET6)
|
#if (NGX_HAVE_INET6)
|
||||||
if (r->ipv6) {
|
if (r->ipv6) {
|
||||||
|
Loading…
Reference in New Issue
Block a user