aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-09-20 09:56:05 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-09-20 09:56:05 +0000
commitd1b9a0388dbcc9a2164710f9d16bbba52f7e55f4 (patch)
treea180ec674c589f6c59f7c5d47a3be9a65674baac
parente4dab80e802241e416170b9686d8484eaa1f90f4 (diff)
downloadnginx-d1b9a0388dbcc9a2164710f9d16bbba52f7e55f4.tar.gz
nginx-d1b9a0388dbcc9a2164710f9d16bbba52f7e55f4.zip
Fixed loss of chain links in fastcgi module.
-rw-r--r--src/http/modules/ngx_http_fastcgi_module.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c
index c30e663da..6f639acc2 100644
--- 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_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);