From 03faf97aa07f92712e4c5ffac3194ee27cec5aea Mon Sep 17 00:00:00 2001
From: Daniel J Walsh <dwalsh@redhat.com>
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
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
---
libpod/image/pull.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/libpod/image/pull.go b/libpod/image/pull.go
index 76294ba06f..fd359d5931 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 {