mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 23:49:00 +08: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;
|
||||
|
||||
if (r->ipv4) {
|
||||
rn->query = p;
|
||||
}
|
||||
rn->query = p;
|
||||
|
||||
#if (NGX_HAVE_INET6)
|
||||
if (r->ipv6) {
|
||||
|
Loading…
Reference in New Issue
Block a user