mirror of
https://github.com/nginx/nginx.git
synced 2025-07-23 13:46:20 +08:00
r1709 merge:
large_client_header_buffers did not free()ed before keep-alive
This commit is contained in:
parent
89aa4bd863
commit
07dac6cdeb
@ -2085,7 +2085,7 @@ ngx_http_set_keepalive(ngx_http_request_t *r)
|
|||||||
|
|
||||||
if (hc->free) {
|
if (hc->free) {
|
||||||
for (i = 0; i < hc->nfree; i++) {
|
for (i = 0; i < hc->nfree; i++) {
|
||||||
ngx_pfree(c->pool, hc->free[i]);
|
ngx_pfree(c->pool, hc->free[i]->start);
|
||||||
hc->free[i] = NULL;
|
hc->free[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2097,7 +2097,7 @@ ngx_http_set_keepalive(ngx_http_request_t *r)
|
|||||||
|
|
||||||
if (hc->busy) {
|
if (hc->busy) {
|
||||||
for (i = 0; i < hc->nbusy; i++) {
|
for (i = 0; i < hc->nbusy; i++) {
|
||||||
ngx_pfree(c->pool, hc->busy[i]);
|
ngx_pfree(c->pool, hc->busy[i]->start);
|
||||||
hc->busy[i] = NULL;
|
hc->busy[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user