mirror of https://github.com/facebook/rocksdb.git
Fix double-free in corruption_test
This commit is contained in:
parent
e67241f0b9
commit
c21ce14fa5
|
@ -391,6 +391,7 @@ TEST(CorruptionTest, FileSystemStateCorrupted) {
|
||||||
std::string filename = dbname_ + metadata[0].name;
|
std::string filename = dbname_ + metadata[0].name;
|
||||||
|
|
||||||
delete db_;
|
delete db_;
|
||||||
|
db_ = nullptr;
|
||||||
|
|
||||||
if (iter == 0) { // corrupt file size
|
if (iter == 0) { // corrupt file size
|
||||||
unique_ptr<WritableFile> file;
|
unique_ptr<WritableFile> file;
|
||||||
|
|
Loading…
Reference in New Issue