pkg: storage: image: close image after using it
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
4fb52c2b12
commit
4f4e228274
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue