close the handle

This commit is contained in:
lionsoul2014 2026-08-01 08:50:56 +08:00
parent cd40e3a1d5
commit d5e3616d8e
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ func newConfig(cachePolicy int, ipVersion *xdb.Version, xdbPath string, searcher
if err != nil {
return nil, err
}
defer handle.Close()
// 1, verify the xdb
err = xdb.Verify(handle)