]> git.kaiwu.me - nginx.git/commitdiff
Fixed loss of chain links in fastcgi module.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 20 Sep 2011 09:56:05 +0000 (09:56 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 20 Sep 2011 09:56:05 +0000 (09:56 +0000)
src/http/modules/ngx_http_fastcgi_module.c

index c30e663dae62355592d94e3d60c2a68e6066b502..6f639acc22852813578c367e1cdacadbc22cca87 100644 (file)
@@ -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);