fix(report): database is locked with SQLite3 backend #681 (#682)

This commit is contained in:
Kota Kanbe
2018-07-11 11:11:57 +09:00
committed by GitHub
parent 81f2ba8a46
commit e3a01ff6a8
2 changed files with 139 additions and 3 deletions

View File

@@ -146,6 +146,7 @@ func (api cvedictClient) FetchCveDetailsFromCveDB(cveIDs []string) (cveDetails [
log.Error(err)
return []*cve.CveDetail{}, fmt.Errorf("Failed to New DB. err: %s", err)
}
defer driver.CloseDB()
for _, cveID := range cveIDs {
cveDetail := driver.Get(cveID)