mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
Resolver: free TCP buffers on resolver cleanup.
This commit is contained in:
parent
625481f6f1
commit
cbee15bb6c
@ -295,6 +295,16 @@ ngx_resolver_cleanup(void *data)
|
||||
if (rec[i].tcp) {
|
||||
ngx_close_connection(rec[i].tcp);
|
||||
}
|
||||
|
||||
if (rec[i].read_buf) {
|
||||
ngx_resolver_free(r, rec[i].read_buf->start);
|
||||
ngx_resolver_free(r, rec[i].read_buf);
|
||||
}
|
||||
|
||||
if (rec[i].write_buf) {
|
||||
ngx_resolver_free(r, rec[i].write_buf->start);
|
||||
ngx_resolver_free(r, rec[i].write_buf);
|
||||
}
|
||||
}
|
||||
|
||||
ngx_free(r);
|
||||
|
Loading…
Reference in New Issue
Block a user