repair packs: Properly close backup files

This commit is contained in:
Michael Eischer 2024-04-17 18:32:30 +02:00
parent 55d56db31b
commit 001bb71676
1 changed files with 4 additions and 0 deletions

View File

@ -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
}
}