From: Valentin Bartenev Date: Tue, 2 Feb 2016 13:33:55 +0000 (+0300) Subject: HTTP/2: fixed excessive memory allocation for pool cleanup. X-Git-Tag: release-1.9.11~13 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=405f4f99b4471a3073304f9ce689000dcb592ee4;p=nginx.git HTTP/2: fixed excessive memory allocation for pool cleanup. --- 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;