From 8aa97dc74d8b957415ca0acaab77a0452089762d Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 12 Dec 2007 15:42:39 +0000 Subject: [PATCH] large_client_header_buffers did not free()ed before keep-alive --- src/http/ngx_http_request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 51ec46ce7..c04c6f9d6 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -2093,7 +2093,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; } @@ -2105,7 +2105,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; }