From 6d79beb5f67dbb54d7714c3195addf9d8e3924e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 25 Nov 2017 18:37:48 +0100 Subject: [PATCH] tpl/images: Close image file --- tpl/images/images.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tpl/images/images.go b/tpl/images/images.go index 66999aa3..f5d32f44 100644 --- a/tpl/images/images.go +++ b/tpl/images/images.go @@ -71,6 +71,7 @@ func (ns *Namespace) Config(path interface{}) (image.Config, error) { if err != nil { return image.Config{}, err } + defer f.Close() config, _, err = image.DecodeConfig(f) if err != nil { -- 2.30.2