Skip to content

Commit 0f7807e

Browse files
authored
Merge pull request #9135 from The-OpenROAD-Project-staging/odb-journal-leak
odb:fix leak of dbJournal in dbDatabase::undoEco
2 parents f223118 + 55bbc31 commit 0f7807e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/odb/src/db/dbDatabase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ void dbDatabase::undoEco(dbBlock* block_)
814814
dbJournal* journal = block->journal_;
815815
block->journal_ = nullptr;
816816
journal->undo();
817-
delete block->journal_;
817+
delete journal;
818818
}
819819

820820
bool dbDatabase::ecoEmpty(dbBlock* block_)

0 commit comments

Comments
 (0)