From c21ce14fa5461c48b57f47c57f0d25014e1c775c Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Thu, 20 Mar 2014 14:37:30 -0700 Subject: [PATCH] Fix double-free in corruption_test --- db/corruption_test.cc | 1 + 1 file changed, 1 insertion(+) 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;