commit | d1b9a0388dbcc9a2164710f9d16bbba52f7e55f4 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Tue Sep 20 09:56:05 2011 +0000 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Tue Sep 20 09:56:05 2011 +0000 |
tree | a180ec674c589f6c59f7c5d47a3be9a65674baac | |
parent | e4dab80e802241e416170b9686d8484eaa1f90f4 [diff] |
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 index c30e663..6f639ac 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -1744,8 +1744,10 @@ } 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);