From 405f4f99b4471a3073304f9ce689000dcb592ee4 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Tue, 2 Feb 2016 16:33:55 +0300 Subject: [PATCH] HTTP/2: fixed excessive memory allocation for pool cleanup. --- src/http/v2/ngx_http_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c index 869ce0894..9df2168ca 100644 --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c @@ -251,7 +251,7 @@ ngx_http_v2_init(ngx_event_t *rev) return; } - cln = ngx_pool_cleanup_add(c->pool, sizeof(ngx_pool_cleanup_file_t)); + cln = ngx_pool_cleanup_add(c->pool, 0); if (cln == NULL) { ngx_http_close_connection(c); return;