client-go
client-go copied to clipboard
PdOracle leak if other error happens in NewKVStore
https://github.com/tikv/client-go/blob/0fdd25559b3891ad9253f647b712072b889b3b4f/tikv/kv.go#L319-L326
forget to call o.Close and other objects' Close. It will cause some error log like [pd.go:474] ["updateTS error"] and [region_cache.go:763] ["refresh full store list failed"]