Skip to content

Commit

Permalink
Merge pull request #518 from testwill/close_file
Browse files Browse the repository at this point in the history
fix: close file
  • Loading branch information
camathieu authored Jun 19, 2024
2 parents e675dcb + 8bc3959 commit a25b4f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/data/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (b *Backend) AddFile(file *common.File, fileReader io.Reader) (err error) {
if err != nil {
return fmt.Errorf("unable to create file %s : %s", path, err)
}
defer out.Close()

// Copy file data from the client request body
// to the file system
Expand Down

0 comments on commit a25b4f5

Please sign in to comment.