mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 19:01:23 +00: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