diff --git a/db_stress_tool/db_stress_test_base.cc b/db_stress_tool/db_stress_test_base.cc index f42d92438..777b95813 100644 --- a/db_stress_tool/db_stress_test_base.cc +++ b/db_stress_tool/db_stress_test_base.cc @@ -2563,7 +2563,12 @@ void StressTest::Open() { s = static_cast_with_check(db_->GetRootDB()) ->TEST_WaitForCompact(true); if (!s.ok()) { + for (auto cf : column_families_) { + delete cf; + } + column_families_.clear(); delete db_; + db_ = nullptr; } } if (!s.ok()) {