aboutsummaryrefslogtreecommitdiff
path: root/libpod/image
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-02-04 13:12:01 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2020-02-04 13:12:06 -0500
commit03faf97aa07f92712e4c5ffac3194ee27cec5aea (patch)
treee56bda81da7e1a45a40420128ea9dc97754ec6cf /libpod/image
parent537352cc3ee60373b41481a7f48e65b1978ea5f7 (diff)
downloadpodman-03faf97aa07f92712e4c5ffac3194ee27cec5aea.tar.gz
podman-03faf97aa07f92712e4c5ffac3194ee27cec5aea.tar.bz2
podman-03faf97aa07f92712e4c5ffac3194ee27cec5aea.zip
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>
Diffstat (limited to 'libpod/image')
-rw-r--r--libpod/image/pull.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/image/pull.go b/libpod/image/pull.go
index 76294ba06..fd359d593 100644
--- a/libpod/image/pull.go
+++ b/libpod/image/pull.go
@@ -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 {