mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
tpl/images: Close image file
This commit is contained in:
parent
8afd7d9ceb
commit
6d79beb5f6
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue