Close tarSource when finished using it

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1797599

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2020-02-04 13:12:01 -05:00
parent 537352cc3e
commit 03faf97aa0

View File

@ -126,6 +126,7 @@ func (ir *Runtime) pullGoalFromImageReference(ctx context.Context, srcRef types.
if err != nil { if err != nil {
return nil, err return nil, err
} }
defer tarSource.Close()
manifest, err := tarSource.LoadTarManifest() manifest, err := tarSource.LoadTarManifest()
if err != nil { if err != nil {