SqlFetchChecksums(): close SQL rows ASAP

... not to leak them during the loop.

refs #146
This commit is contained in:
Alexander A. Klimov 2020-04-02 16:26:31 +02:00
parent 54ee5519a2
commit 8c361a6dfd

View file

@ -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