]> git.kaiwu.me - nginx.git/commitdiff
r1709 merge:
authorIgor Sysoev <igor@sysoev.ru>
Tue, 8 Jan 2008 17:22:10 +0000 (17:22 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 8 Jan 2008 17:22:10 +0000 (17:22 +0000)
large_client_header_buffers did not free()ed before keep-alive

src/http/ngx_http_request.c

index daef392527c79bd72e14741d3286ffa2fc262fad..ab827a648e25e3d2122cdc3a8593ce4172ca5a71 100644 (file)
@@ -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;
         }