]> git.kaiwu.me - nginx.git/commitdiff
large_client_header_buffers did not free()ed before keep-alive
authorIgor Sysoev <igor@sysoev.ru>
Wed, 12 Dec 2007 15:42:39 +0000 (15:42 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 12 Dec 2007 15:42:39 +0000 (15:42 +0000)
src/http/ngx_http_request.c

index 51ec46ce75baccd98e48754af67e90077c60d17d..c04c6f9d666e7383fc327fd35e010018471dd6e3 100644 (file)
@@ -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;
         }