Skip to content

Commit 55bbc31

Browse files
committed
odb:fix leak of dbJournal in dbDatabase::undoEco
Signed-off-by: Matt Liberty <[email protected]>
1 parent 7e40461 commit 55bbc31

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)