diff src/http/ngx_http_upstream.c @ 1908:f2953601ed3c

fix memory leak in long-lived non buffered connections
author Igor Sysoev <igor@sysoev.ru>
date Mon, 03 Mar 2008 10:42:00 +0000
parents 37f4020963dc
children 68b426b43c31
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1937,6 +1937,7 @@ ngx_http_upstream_non_buffered_filter(vo
     cl->buf->pos = b->last;
     b->last += bytes;
     cl->buf->last = b->last;
+    cl->buf->tag = u->output.tag;
 
     if (u->length == NGX_MAX_SIZE_T_VALUE) {
         return NGX_OK;