mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix double-free in corruption_test
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user