comparison src/http/ngx_http_request.c @ 1708:3748e50f9b23

large_client_header_buffers did not free()ed before keep-alive
author Igor Sysoev <igor@sysoev.ru>
date Wed, 12 Dec 2007 15:42:39 +0000
parents e584e946e198
children 529101a09048
comparison
equal deleted inserted replaced
1707:f3188f6eae1f 1708:3748e50f9b23
2091 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, "hc free: %p %d", 2091 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, "hc free: %p %d",
2092 hc->free, hc->nfree); 2092 hc->free, hc->nfree);
2093 2093
2094 if (hc->free) { 2094 if (hc->free) {
2095 for (i = 0; i < hc->nfree; i++) { 2095 for (i = 0; i < hc->nfree; i++) {
2096 ngx_pfree(c->pool, hc->free[i]); 2096 ngx_pfree(c->pool, hc->free[i]->start);
2097 hc->free[i] = NULL; 2097 hc->free[i] = NULL;
2098 } 2098 }
2099 2099
2100 hc->nfree = 0; 2100 hc->nfree = 0;
2101 } 2101 }
2103 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, "hc busy: %p %d", 2103 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, "hc busy: %p %d",
2104 hc->busy, hc->nbusy); 2104 hc->busy, hc->nbusy);
2105 2105
2106 if (hc->busy) { 2106 if (hc->busy) {
2107 for (i = 0; i < hc->nbusy; i++) { 2107 for (i = 0; i < hc->nbusy; i++) {
2108 ngx_pfree(c->pool, hc->busy[i]); 2108 ngx_pfree(c->pool, hc->busy[i]->start);
2109 hc->busy[i] = NULL; 2109 hc->busy[i] = NULL;
2110 } 2110 }
2111 2111
2112 hc->nbusy = 0; 2112 hc->nbusy = 0;
2113 } 2113 }