changeset 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 c48662671609
children 525a34d74a0a
files src/http/modules/ngx_http_fastcgi_module.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
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);