From 04fc4b7e05bfbfee6cb7aa4f6c30d1af6f2d4d2d Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 5 May 2022 22:13:23 +0800 Subject: Call MultipartForm.RemoveAll when request finishes (#19606) --- routers/api/v1/misc/markdown_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routers/api') diff --git a/routers/api/v1/misc/markdown_test.go b/routers/api/v1/misc/markdown_test.go index 349498e2ab..9beb88be16 100644 --- a/routers/api/v1/misc/markdown_test.go +++ b/routers/api/v1/misc/markdown_test.go @@ -37,6 +37,8 @@ func createContext(req *http.Request) (*context.Context, *httptest.ResponseRecor Render: rnd, Data: make(map[string]interface{}), } + defer c.Close() + return c, resp } -- cgit v1.2.3