commit | d3933c44f48f0b5bab9c82da9d48cffb81da1767 | [log] [tgz] |
---|---|---|
author | Valentin Bartenev <vbart@nginx.com> | Tue Feb 02 16:33:55 2016 +0300 |
committer | Valentin Bartenev <vbart@nginx.com> | Tue Feb 02 16:33:55 2016 +0300 |
tree | f0ea091358caae5eaa812cdb4144a039fecce107 | |
parent | ad9423e81be81299e866bf7b26d0b96a4bc7cec5 [diff] |
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 869ce08..9df2168 100644 --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c
@@ -251,7 +251,7 @@ 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;