From: Bjørn Erik Pedersen Date: Sat, 25 Nov 2017 17:37:48 +0000 (+0100) Subject: tpl/images: Close image file X-Git-Tag: v0.31.1~4 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6d79beb5f67dbb54d7714c3195addf9d8e3924e8;p=brevno-suite%2Fhugo tpl/images: Close image file --- 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 {