]> git.kaiwu.me - nginx.git/commitdiff
Proxy: allocate $proxy_internal_body_length from request pool.
authorRuslan Ermilov <ru@nginx.com>
Mon, 29 Apr 2013 14:58:58 +0000 (18:58 +0400)
committerRuslan Ermilov <ru@nginx.com>
Mon, 29 Apr 2013 14:58:58 +0000 (18:58 +0400)
src/http/modules/ngx_http_proxy_module.c

index eadc8c480bbef442c2593a08b191a2c50f3a4793..892ee27cbadb3347483037663b71bbc33bd5d531 100644 (file)
@@ -2076,7 +2076,7 @@ ngx_http_proxy_internal_body_length_variable(ngx_http_request_t *r,
     v->no_cacheable = 0;
     v->not_found = 0;
 
-    v->data = ngx_pnalloc(r->connection->pool, NGX_OFF_T_LEN);
+    v->data = ngx_pnalloc(r->pool, NGX_OFF_T_LEN);
 
     if (v->data == NULL) {
         return NGX_ERROR;