From afae1ed59b2e3fbae0d4393a98094180f6f5a0b9 Mon Sep 17 00:00:00 2001 From: Dylan Moreland Date: Tue, 5 Nov 2024 21:35:18 -0500 Subject: [PATCH] Closers --- cmd/devices-api/find_old_style_tasks.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }