mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-07-20 00:52:17 -05:00
DownloadUserDataExport obtained an open file reader from GetUserDataExportFile but never closed it on either the s3 io.Copy or the http.ServeContent branch, leaking a file descriptor on every download. Defer the close right after the file is obtained so both branches and the error paths cover it.