mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
SqlFetchChecksums(): close SQL rows ASAP
... not to leak them during the loop. refs #146
This commit is contained in:
parent
54ee5519a2
commit
8c361a6dfd
1 changed files with 2 additions and 0 deletions
|
|
@ -680,6 +680,8 @@ func (dbw *DBWrapper) SqlFetchChecksums(table string, ids []string) (map[string]
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
rows.Close()
|
||||
}
|
||||
|
||||
return checksums, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue