diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-11-25 18:37:48 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-11-25 18:38:33 +0100 |
commit | 6d79beb5f67dbb54d7714c3195addf9d8e3924e8 (patch) | |
tree | 444053e4a7791309cd792a60a90e65e2d1047efe /tpl/images/images.go | |
parent | 8afd7d9ceb0d168300e3399c6e87a355a88c9a28 (diff) |
tpl/images: Close image file
Diffstat (limited to 'tpl/images/images.go')
-rw-r--r-- | tpl/images/images.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tpl/images/images.go b/tpl/images/images.go index 66999aa37..f5d32f449 100644 --- a/tpl/images/images.go +++ b/tpl/images/images.go @@ -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 { |