tpl/images: Close image file

This commit is contained in:
Bjørn Erik Pedersen 2017-11-25 18:37:48 +01:00
parent 8afd7d9ceb
commit 6d79beb5f6
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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 {