Skip to content

Commit

Permalink
db_bench: Fix a bug when destructing a Benchmark with multiple db-s (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
udi-speedb committed Nov 15, 2023
1 parent 835fbf4 commit 7457afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/db_bench_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3207,8 +3207,8 @@ class Benchmark {
if (db_.db != nullptr) {
db_.DeleteDBs();
}
for (const DBWithColumnFamilies& dbwcf : multi_dbs_) {
delete dbwcf.db;
for (DBWithColumnFamilies& dbwcf : multi_dbs_) {
dbwcf.DeleteDBs();
}
}

Expand Down

0 comments on commit 7457afe

Please sign in to comment.