# HG changeset patch # User Maxim Dounin # Date 1316512565 0 # Node ID 7898857ff34b69220198c1d76f9ac7e603065bb1 # Parent d8e24515176e73648c2c9fc5d59e2c292597331a 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 @@ -1744,8 +1744,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);