diff --git a/cmd/devices-api/find_old_style_tasks.go b/cmd/devices-api/find_old_style_tasks.go index 61f3c62e..2488aa71 100644 --- a/cmd/devices-api/find_old_style_tasks.go +++ b/cmd/devices-api/find_old_style_tasks.go @@ -100,9 +100,13 @@ func (fost *findOldStyleTasks) Execute(_ context.Context, _ *flag.FlagSet, _ ... } } } + + _ = pc.Close() } fost.logger.Info().Msgf("Finished examining %d partitions.", len(ps)) + _ = cons.Close() + return subcommands.ExitSuccess }