mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-21 21:33:30 +08:00
fix: 修复分块上传文件资源未释放问题 (#5109)
Some checks failed
sync2gitee / repo-sync (push) Failing after 1s
Some checks failed
sync2gitee / repo-sync (push) Failing after 1s
This commit is contained in:
parent
73e901bb94
commit
508e2ec372
1 changed files with 1 additions and 1 deletions
|
@ -609,7 +609,7 @@ func mergeChunks(fileName string, fileDir string, dstDir string, chunkCount int)
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
defer targetFile.Close()
|
||||
for i := 0; i < chunkCount; i++ {
|
||||
chunkPath := filepath.Join(fileDir, fmt.Sprintf("%s.%d", fileName, i))
|
||||
chunkData, err := os.ReadFile(chunkPath)
|
||||
|
|
Loading…
Reference in a new issue