Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: close driver (#13214)

h3n4leae487c2d55c
diff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.go
index 1b1198a67c..af065f4fb6 100644
--- a/backend/api/v1/rollout_service.go
+++ b/backend/api/v1/rollout_service.go
@@ -284,6 +284,7 @@ func (s *RolloutService) GetTaskRunSession(ctx context.Context, request *v1pb.Ge
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to get driver, error: %v", err)
}
+ defer driver.Close(ctx)
session, err := getSession(ctx, instance.Engine, driver.GetDB(), connID)
if err != nil {