diff --git a/internal/rbd/group.go b/internal/rbd/group.go index d0a390322..701e3b47d 100644 --- a/internal/rbd/group.go +++ b/internal/rbd/group.go @@ -44,6 +44,7 @@ func (rv *rbdVolume) AddToGroup(ctx context.Context, vg types.VolumeGroup) error if err != nil { return fmt.Errorf("failed to open image %q: %w", rv, err) } + defer image.Close() info, err := image.GetGroup() if err != nil {