diff --git a/db/corruption_test.cc b/db/corruption_test.cc index 55e2c0374..2e630c11b 100644 --- a/db/corruption_test.cc +++ b/db/corruption_test.cc @@ -391,6 +391,7 @@ TEST(CorruptionTest, FileSystemStateCorrupted) { std::string filename = dbname_ + metadata[0].name; delete db_; + db_ = nullptr; if (iter == 0) { // corrupt file size unique_ptr file;