mirror of
https://github.com/containers/podman.git
synced 2025-10-19 20:23:08 +08:00
Close tarSource when finished using it
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1797599 Downstream-patch: 5085.patch Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:

committed by
Valentin Rothberg

parent
5c811ece17
commit
23a870b1cc
@ -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 {
|
||||||
|
Reference in New Issue
Block a user