Skip to content

Commit

Permalink
Merge pull request #5085 from rhatdan/close
Browse files Browse the repository at this point in the history
Close tarSource when finished using it
  • Loading branch information
openshift-merge-robot authored Feb 4, 2020
2 parents 348e58b + 03faf97 commit 5092c07
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 5092c07

Please sign in to comment.