Skip to content

Commit

Permalink
fix(azure): close the reader after reading
Browse files Browse the repository at this point in the history
ref: longhorn/longhorn 9281

Signed-off-by: James Lu <james.lu@suse.com>
  • Loading branch information
mantissahz authored and derekbit committed Aug 23, 2024
1 parent ffeeac7 commit 436ca3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions azblob/azblob.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ func (s *BackupStoreDriver) Download(src, dst string) error {
if err != nil {
return err
}
defer rc.Close()

_, err = io.Copy(f, rc)
return err
Expand Down

0 comments on commit 436ca3a

Please sign in to comment.