diff --git a/x/client/client.go b/x/client/client.go index 61107a05..4983c543 100644 --- a/x/client/client.go +++ b/x/client/client.go @@ -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) }