From 03faf97aa07f92712e4c5ffac3194ee27cec5aea Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 4 Feb 2020 13:12:01 -0500 Subject: Close tarSource when finished using it Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1797599 Signed-off-by: Daniel J Walsh --- libpod/image/pull.go | 1 + 1 file changed, 1 insertion(+) (limited to 'libpod') 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 { -- cgit v1.2.3-54-g00ecf