diff --git a/cmd/terraform_plan.go b/cmd/terraform_plan.go index e396d976..2b4920c3 100644 --- a/cmd/terraform_plan.go +++ b/cmd/terraform_plan.go @@ -200,6 +200,7 @@ func TerraformPlan(ctx context.Context, files []string, ready chan bool) int { log.WithError(err).Error("failed to start AWS source engine") return 1 } + defer awsEngine.Stop() stdlibEngine, err := stdlibsource.InitializeStdlibSourceEngine(natsOptions, 2_000, true) if err != nil { @@ -213,6 +214,7 @@ func TerraformPlan(ctx context.Context, files []string, ready chan bool) int { log.WithError(err).Error("failed to start stdlib source engine") return 1 } + defer stdlibEngine.Stop() prompt := `# Doing something