# HG changeset patch # User Valentin Bartenev # Date 1454420035 -10800 # Node ID f598de1bfcd42ff209695a6d9b49569a602bb851 # Parent d2dc8bc0394ad3c299538432edd137dcedbb451e HTTP/2: fixed excessive memory allocation for pool cleanup. diff -r d2dc8bc0394a -r f598de1bfcd4 src/http/v2/ngx_http_v2.c --- a/src/http/v2/ngx_http_v2.c Tue Feb 02 16:33:55 2016 +0300 +++ b/src/http/v2/ngx_http_v2.c Tue Feb 02 16:33:55 2016 +0300 @@ -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;