Fix double-free in corruption_test

main
Igor Canadi 11 years ago
parent e67241f0b9
commit c21ce14fa5
  1. 1
      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<WritableFile> file;

Loading…
Cancel
Save