Fix double-free in corruption_test

This commit is contained in:
Igor Canadi 2014-03-20 14:37:30 -07:00
parent e67241f0b9
commit c21ce14fa5
1 changed files with 1 additions and 0 deletions

View File

@ -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;