pkg: storage: image: close image after using it

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-11-10 14:21:22 +01:00
parent 4fb52c2b12
commit 4f4e228274
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

View file

@ -159,8 +159,8 @@ func (svc *imageService) ImageStatus(systemContext *types.SystemContext, nameOrI
if err != nil { if err != nil {
return nil, err return nil, err
} }
defer img.Close()
size := imageSize(img) size := imageSize(img)
img.Close()
result := ImageResult{ result := ImageResult{
ID: image.ID, ID: image.ID,