diff --git a/db/corruption_test.cc b/db/corruption_test.cc index 55e2c03741..2e630c11b7 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;