Skip to content

Commit

Permalink
fix: close form file (#2416)
Browse files Browse the repository at this point in the history
Signed-off-by: guangwu <guoguangwug@gmail.com>
  • Loading branch information
testwill committed Apr 19, 2024
1 parent c2238c7 commit b904793
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ func (u *Uploader) AddFile(key, filename string) error {
if err != nil {
return err
}
defer source.Close()

return u.AddFileSource(key, filename, source)
}
Expand Down

0 comments on commit b904793

Please sign in to comment.