# HG changeset patch # User Igor Sysoev # Date 1317392338 0 # Node ID 37e5bf2b392d4e081e24ba3991abc7013ad55b25 # Parent c48662671609ccaf02d016d58f7df7c390d2fe69 Merging r4137: Fixed loss of chain links in fastcgi module. diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -1703,8 +1703,10 @@ ngx_http_fastcgi_input_filter(ngx_event_ } if (p->free) { - b = p->free->buf; - p->free = p->free->next; + cl = p->free; + b = cl->buf; + p->free = cl->next; + ngx_free_chain(p->pool, cl); } else { b = ngx_alloc_buf(p->pool);