diff src/http/modules/ngx_http_fastcgi_module.c @ 4165:37e5bf2b392d stable-1.0

Merging r4137: Fixed loss of chain links in fastcgi module.
author Igor Sysoev <igor@sysoev.ru>
date Fri, 30 Sep 2011 14:18:58 +0000
parents 36d2cd2e361d
children efd515ace6bb
line wrap: on
line diff
--- 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);