mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
tpl/images: Close image file
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user