# HG changeset patch # User Maxim Dounin # Date 1383177779 -14400 # Node ID c21e341c51cbc64c234d6d1bb36489bf797741c2 # Parent c37f34bda5eafd4570148bd1a6b0d32ab55ced25 Removed extra allocation for $sent_http_last_modified. There is no need to allocate memory for "Last-Modified: " string, the variable only contains date itself. diff -r c37f34bda5ea -r c21e341c51cb src/http/ngx_http_variables.c --- a/src/http/ngx_http_variables.c Thu Oct 31 04:02:21 2013 +0400 +++ b/src/http/ngx_http_variables.c Thu Oct 31 04:02:59 2013 +0400 @@ -1744,8 +1744,7 @@ } if (r->headers_out.last_modified_time >= 0) { - p = ngx_pnalloc(r->pool, - sizeof("Last-Modified: Mon, 28 Sep 1970 06:00:00 GMT") - 1); + p = ngx_pnalloc(r->pool, sizeof("Mon, 28 Sep 1970 06:00:00 GMT") - 1); if (p == NULL) { return NGX_ERROR; }