From 23a870b1cc02259cbb18528ac1d473beba39d0eb Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 4 Feb 2020 13:12:01 -0500 Subject: [PATCH] Close tarSource when finished using it Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1797599 Downstream-patch: 5085.patch Signed-off-by: Daniel J Walsh Signed-off-by: Valentin Rothberg --- libpod/image/pull.go | 1 + 1 file changed, 1 insertion(+) diff --git a/libpod/image/pull.go b/libpod/image/pull.go index 7f5dc33b9a..ba56bb5970 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 {