diff --git a/internal/config/generator.go b/internal/config/generator.go index 4ed1ac5f..9490cfcb 100644 --- a/internal/config/generator.go +++ b/internal/config/generator.go @@ -858,7 +858,8 @@ func create(file string) error { return err } } - _, err := os.Create(file) + f, err := os.Create(file) + defer func() { _ = f.Close() }() return err }