summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-01-08 17:22:10 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-01-08 17:22:10 +0000
commit07dac6cdeb217f75588bf8e85ebff75be08711d0 (patch)
treefadf23246e147cd3428eb5be60080a6b060061c3
parent89aa4bd8632f9ebd2b096adb44e688ece2e545e6 (diff)
downloadnginx-07dac6cdeb217f75588bf8e85ebff75be08711d0.tar.gz
r1709 merge:
large_client_header_buffers did not free()ed before keep-alive
-rw-r--r--src/http/ngx_http_request.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index daef39252..ab827a648 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -2085,7 +2085,7 @@ ngx_http_set_keepalive(ngx_http_request_t *r)
if (hc->free) {
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;
}
@@ -2097,7 +2097,7 @@ ngx_http_set_keepalive(ngx_http_request_t *r)
if (hc->busy) {
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;
}