diff options
author | Valentin Bartenev <vbart@nginx.com> | 2016-02-02 16:33:55 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2016-02-02 16:33:55 +0300 |
commit | 405f4f99b4471a3073304f9ce689000dcb592ee4 (patch) | |
tree | f0ea091358caae5eaa812cdb4144a039fecce107 | |
parent | 3351fbe48124b0e56f1478536089073db8fd2d7d (diff) | |
download | nginx-405f4f99b4471a3073304f9ce689000dcb592ee4.tar.gz nginx-405f4f99b4471a3073304f9ce689000dcb592ee4.zip |
HTTP/2: fixed excessive memory allocation for pool cleanup.
-rw-r--r-- | src/http/v2/ngx_http_v2.c | 2 |
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; |