Skip to content

Commit

Permalink
Close tarSource when finished using it
Browse files Browse the repository at this point in the history
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1797599

Downstream-patch: 5085.patch
Signed-off-by: Daniel J Walsh <[email protected]>
Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
rhatdan authored and vrothberg committed Jun 28, 2022
1 parent 5c811ec commit 23a870b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libpod/image/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func (ir *Runtime) pullGoalFromImageReference(ctx context.Context, srcRef types.
if err != nil {
return nil, err
}
defer tarSource.Close()
manifest, err := tarSource.LoadTarManifest()

if err != nil {
Expand Down

0 comments on commit 23a870b

Please sign in to comment.