diff --git a/pkg/storage/image.go b/pkg/storage/image.go index 2b0478cd..011e5a5d 100644 --- a/pkg/storage/image.go +++ b/pkg/storage/image.go @@ -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,