summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-07-27 15:26:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-07-27 15:26:33 +0000
commit6af21b7cda1f4297122cb8a171299071b8cd7fdf (patch)
tree4c8fbab45b771186054addc603818b41a4128515
parent3cf3100977606df0f2883174f8ff81357f686d7f (diff)
downloadnginx-6af21b7cda1f4297122cb8a171299071b8cd7fdf.tar.gz
nginx-6af21b7cda1f4297122cb8a171299071b8cd7fdf.tar.bz2
fix r3707: cache node should be freed be a response is not cached
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index de2b97009..93a0e5324 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1722,7 +1722,7 @@ ngx_http_upstream_intercept_errors(ngx_http_request_t *r,
#if (NGX_HTTP_CACHE)
- if (u->cacheable && r->cache) {
+ if (r->cache) {
time_t valid;
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,