Request body: fixed r->count increment on allocation failure.
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index 2c61231..7ca3287 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c
@@ -152,7 +152,8 @@ cl = ngx_chain_get_free_buf(r->pool, &rb->free); if (cl == NULL) { - return NGX_HTTP_INTERNAL_SERVER_ERROR; + rc = NGX_HTTP_INTERNAL_SERVER_ERROR; + goto done; } b = cl->buf;