hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 6d79beb5f67dbb54d7714c3195addf9d8e3924e8
parent 8afd7d9ceb0d168300e3399c6e87a355a88c9a28
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sat, 25 Nov 2017 18:37:48 +0100

tpl/images: Close image file

Diffstat:
Mtpl/images/images.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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 {