diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-04 13:57:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 13:57:43 -0800 |
commit | 5092c078ec635c9f1598989b27ccf53369b3cf2b (patch) | |
tree | a057c9f6de9ce6b9d0bf676d54bd452e26fb9520 /libpod | |
parent | 348e58b59aadbfd873c6c4cd7d2ed4877f43d054 (diff) | |
parent | 03faf97aa07f92712e4c5ffac3194ee27cec5aea (diff) | |
download | podman-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.go | 1 |
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 { |