4c4c1b
From 03faf97aa07f92712e4c5ffac3194ee27cec5aea Mon Sep 17 00:00:00 2001
4c4c1b
From: Daniel J Walsh <dwalsh@redhat.com>
4c4c1b
Date: Tue, 4 Feb 2020 13:12:01 -0500
4c4c1b
Subject: [PATCH] Close tarSource when finished using it
4c4c1b
4c4c1b
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1797599
4c4c1b
4c4c1b
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
4c4c1b
---
4c4c1b
 libpod/image/pull.go | 1 +
4c4c1b
 1 file changed, 1 insertion(+)
4c4c1b
4c4c1b
diff --git a/libpod/image/pull.go b/libpod/image/pull.go
4c4c1b
index 76294ba06f..fd359d5931 100644
4c4c1b
--- a/libpod/image/pull.go
4c4c1b
+++ b/libpod/image/pull.go
4c4c1b
@@ -126,6 +126,7 @@ func (ir *Runtime) pullGoalFromImageReference(ctx context.Context, srcRef types.
4c4c1b
 		if err != nil {
4c4c1b
 			return nil, err
4c4c1b
 		}
4c4c1b
+		defer tarSource.Close()
4c4c1b
 		manifest, err := tarSource.LoadTarManifest()
4c4c1b
 
4c4c1b
 		if err != nil {