diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-02-04 13:12:01 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-02-04 13:12:06 -0500 |
commit | 03faf97aa07f92712e4c5ffac3194ee27cec5aea (patch) | |
tree | e56bda81da7e1a45a40420128ea9dc97754ec6cf /libpod/image/pull.go | |
parent | 537352cc3ee60373b41481a7f48e65b1978ea5f7 (diff) | |
download | podman-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/pull.go')
-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 { |