Merge pull request #1139 from runcom/close-img

pkg: storage: image: close image after using it
This commit is contained in:
Mrunal Patel 2017-11-10 05:15:52 -10:00 committed by GitHub
commit 56eb473aaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,