ref: 6d79beb5f67dbb54d7714c3195addf9d8e3924e8
parent: 8afd7d9ceb0d168300e3399c6e87a355a88c9a28
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Nov 25 13:37:48 EST 2017
tpl/images: Close image file
--- a/tpl/images/images.go
+++ b/tpl/images/images.go
@@ -71,6 +71,7 @@
if err != nil {
return image.Config{}, err
}
+ defer f.Close()
config, _, err = image.DecodeConfig(f)
if err != nil {