mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-14 08:32:54 +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 {
|
if err != nil {
|
||||||
return image.Config{}, err
|
return image.Config{}, err
|
||||||
}
|
}
|
||||||
|
defer f.Close()
|
||||||
|
|
||||||
config, _, err = image.DecodeConfig(f)
|
config, _, err = image.DecodeConfig(f)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue