commit e3f78c6fedfe5d13532d66bae7b794b8f7b7fe6d
parent 8d9c39e0ee60f3f280586a66ea27f60c3d062f2f
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Fri, 3 Feb 2023 17:32:06 -0800
defer file close
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -4489,6 +4489,7 @@ func FileDropDkfDownloadHandler(c echo.Context) error {
logrus.Error(err)
return c.NoContent(http.StatusInternalServerError)
}
+ defer f.Close()
init := c.Request().PostFormValue("init")
if init != "" {