aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-04 13:57:43 -0800
committerGitHub <noreply@github.com>2020-02-04 13:57:43 -0800
commit5092c078ec635c9f1598989b27ccf53369b3cf2b (patch)
treea057c9f6de9ce6b9d0bf676d54bd452e26fb9520 /libpod
parent348e58b59aadbfd873c6c4cd7d2ed4877f43d054 (diff)
parent03faf97aa07f92712e4c5ffac3194ee27cec5aea (diff)
downloadpodman-5092c078ec635c9f1598989b27ccf53369b3cf2b.tar.gz
podman-5092c078ec635c9f1598989b27ccf53369b3cf2b.tar.bz2
podman-5092c078ec635c9f1598989b27ccf53369b3cf2b.zip
Merge pull request #5085 from rhatdan/close
Close tarSource when finished using it
Diffstat (limited to 'libpod')
-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 {