aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2016-02-02 16:33:55 +0300
committerValentin Bartenev <vbart@nginx.com>2016-02-02 16:33:55 +0300
commit405f4f99b4471a3073304f9ce689000dcb592ee4 (patch)
treef0ea091358caae5eaa812cdb4144a039fecce107
parent3351fbe48124b0e56f1478536089073db8fd2d7d (diff)
downloadnginx-405f4f99b4471a3073304f9ce689000dcb592ee4.tar.gz
nginx-405f4f99b4471a3073304f9ce689000dcb592ee4.zip
HTTP/2: fixed excessive memory allocation for pool cleanup.
-rw-r--r--src/http/v2/ngx_http_v2.c2
1 files changed, 1 insertions, 1 deletions
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;