mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-21 16:15:45 +00:00
fix: ensure rows are closed (#670)
This commit is contained in:
parent
8538877f52
commit
85c8e47016
1 changed files with 2 additions and 0 deletions
|
@ -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() {
|
||||
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue