]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: fixed excessive memory allocation for pool cleanup.
authorValentin Bartenev <vbart@nginx.com>
Tue, 2 Feb 2016 13:33:55 +0000 (16:33 +0300)
committerValentin Bartenev <vbart@nginx.com>
Tue, 2 Feb 2016 13:33:55 +0000 (16:33 +0300)
src/http/v2/ngx_http_v2.c

index 869ce08943160b5fb0ea85f57cd311d0a8c2fdf9..9df2168ca538ef67e84949d8b24d72a83afb3fad 100644 (file)
@@ -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;