fix(benchmark): fix memory leak in kyoto cabinet benchmarks
we should delete db in ~Benchmark() function
This commit is contained in:
parent
068d5ee1a3
commit
f9404abf04
@ -319,6 +319,7 @@ class Benchmark {
|
||||
if (!db_->close()) {
|
||||
std::fprintf(stderr, "close error: %s\n", db_->error().name());
|
||||
}
|
||||
delete db_;
|
||||
}
|
||||
|
||||
void Run() {
|
||||
|
Loading…
Reference in New Issue
Block a user