Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
fix: ensure rows are closed (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
hay-kot authored Dec 16, 2023
1 parent 8538877 commit 85c8e47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/internal/data/repo/repo_locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func (r *LocationRepository) GetAll(ctx context.Context, GID uuid.UUID, filter L
if err != nil {
return nil, err
}
defer rows.Close()

list := []LocationOutCount{}
for rows.Next() {
Expand Down Expand Up @@ -285,6 +286,7 @@ func (lr *LocationRepository) PathForLoc(ctx context.Context, GID, locID uuid.UU
if err != nil {
return nil, err
}
defer rows.Close()

var locations []LocationPath

Expand Down

0 comments on commit 85c8e47

Please sign in to comment.