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. |
||
|---|---|---|
| .. | ||
| shared | ||
| v1 | ||
| v2 | ||