Skip to content

Commit

Permalink
Merge pull request #4770 from testwill/close_files
Browse files Browse the repository at this point in the history
fix: close files
  • Loading branch information
MichaelEischer committed Apr 17, 2024
2 parents 55d56db + 001bb71 commit 2173c69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/restic/cmd_repair_packs.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func runRepairPacks(ctx context.Context, gopts GlobalOptions, term *termstatus.T
return err
})
if err != nil {
_ = f.Close()
return err
}
if err := f.Close(); err != nil {
return err
}
}
Expand Down

0 comments on commit 2173c69

Please sign in to comment.