[PATCH 4 of 4] Fixed loss of chain links in ngx_event_pipe_read_upstream()

Maxim Dounin mdounin at mdounin.ru
Mon Sep 19 06:47:20 UTC 2011


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1316414176 -14400
# Node ID 2856ee8bc4a4183355ec13055a1a9bd54927b59c
# Parent  2bd42223394dff4bddc10c46e331705539749d5d
Fixed loss of chain links in ngx_event_pipe_read_upstream().

diff --git a/src/event/ngx_event_pipe.c b/src/event/ngx_event_pipe.c
--- a/src/event/ngx_event_pipe.c
+++ b/src/event/ngx_event_pipe.c
@@ -409,6 +409,7 @@ ngx_event_pipe_read_upstream(ngx_event_p
             }
 
             p->free_raw_bufs = cl->next;
+            ngx_free_chain(p->pool, cl);
         }
     }
 



More information about the nginx-devel mailing list