[PATCH 3 of 4] Fixed loss of chain links in fastcgi module
Maxim Dounin
mdounin at mdounin.ru
Mon Sep 19 06:47:19 UTC 2011
# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1316387068 -14400
# Node ID 2bd42223394dff4bddc10c46e331705539749d5d
# Parent e71db1db1a002ef34d6f6b24cd1c2059f8df58f5
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
--- 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_
}
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);
More information about the nginx-devel
mailing list