mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
free addrs only it has been allocated before: non single address
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user