mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
free addrs only it has been allocated before: non single address
This commit is contained in:
parent
8629b9b27e
commit
fa748fe120
1 changed files with 1 additions and 1 deletions
|
|
@ -1336,7 +1336,7 @@ ngx_resolver_process_a(ngx_resolver_t *r, u_char *buf, size_t last,
|
|||
ctx->handler(ctx);
|
||||
}
|
||||
|
||||
if (naddrs) {
|
||||
if (naddrs > 1) {
|
||||
ngx_resolver_free(r, addrs);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue