Skip to content

Commit

Permalink
fix(engine): close file when untar
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin authored and acornett21 committed May 10, 2024
1 parent 5fa97bf commit 004779b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ func untar(ctx context.Context, dst string, r io.Reader) error {

// copy over contents
if _, err := io.Copy(f, tr); err != nil {
f.Close()
return err
}

Expand Down

0 comments on commit 004779b

Please sign in to comment.