Merge pull request #1139 from runcom/close-img
pkg: storage: image: close image after using it
This commit is contained in:
commit
56eb473aaa
1 changed files with 1 additions and 1 deletions
|
@ -159,8 +159,8 @@ func (svc *imageService) ImageStatus(systemContext *types.SystemContext, nameOrI
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer img.Close()
|
||||
size := imageSize(img)
|
||||
img.Close()
|
||||
|
||||
result := ImageResult{
|
||||
ID: image.ID,
|
||||
|
|
Loading…
Reference in a new issue