fix(benchmark): fix memory leak in kyoto cabinet benchmarks

we should delete db in ~Benchmark() function
This commit is contained in:
WangTingZheng 2023-06-21 19:41:10 +08:00
parent 068d5ee1a3
commit f9404abf04

View File

@ -319,6 +319,7 @@ class Benchmark {
if (!db_->close()) {
std::fprintf(stderr, "close error: %s\n", db_->error().name());
}
delete db_;
}
void Run() {