Skip to content

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

fix: close row before reusing (#1758)

p0ny513b97a485ce
diff --git a/store/inbox.go b/store/inbox.go
index fc6d643bd7..5ce205758c 100644
--- a/store/inbox.go
+++ b/store/inbox.go
@@ -120,6 +120,9 @@ func (s *Store) FindInboxSummary(ctx context.Context, principalID int) (*api.Inb
if err := row.Err(); err != nil {
return nil, FormatError(err)
}
+ if err := row.Close(); err != nil {
+ return nil, err
+ }
if !found {
return nil, common.FormatDBErrorEmptyRowWithQuery(query)
}