comparison src/http/v2/ngx_http_v2.c @ 6374:f598de1bfcd4

HTTP/2: fixed excessive memory allocation for pool cleanup.
author Valentin Bartenev <vbart@nginx.com>
date Tue, 02 Feb 2016 16:33:55 +0300
parents 1d696c646d81
children e30c72b0dfda
comparison
equal deleted inserted replaced
6373:d2dc8bc0394a 6374:f598de1bfcd4
249 if (h2c->pool == NULL) { 249 if (h2c->pool == NULL) {
250 ngx_http_close_connection(c); 250 ngx_http_close_connection(c);
251 return; 251 return;
252 } 252 }
253 253
254 cln = ngx_pool_cleanup_add(c->pool, sizeof(ngx_pool_cleanup_file_t)); 254 cln = ngx_pool_cleanup_add(c->pool, 0);
255 if (cln == NULL) { 255 if (cln == NULL) {
256 ngx_http_close_connection(c); 256 ngx_http_close_connection(c);
257 return; 257 return;
258 } 258 }
259 259