Merging r4137:

Fixed loss of chain links in fastcgi module.
This commit is contained in:
Igor Sysoev 2011-09-30 14:18:58 +00:00
parent eb88e0b937
commit 3b51e822bb
1 changed files with 4 additions and 2 deletions

View File

@ -1703,8 +1703,10 @@ ngx_http_fastcgi_input_filter(ngx_event_pipe_t *p, ngx_buf_t *buf)
}
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);