Now using a std::unique_ptr, the Db instance is correctly released
when CDB initialization fails.
The internal CDB state and mapFileUseCount are only mutated when
the CDB initialization succeeds.
Backport of core PR11492
Complete T220
Differential D2231
[wallet] Fix leak in CDB constructor Fabien on Dec 28 2018, 21:59. Authored by
Details
Now using a std::unique_ptr, the Db instance is correctly released Backport of core PR11492 make check
Diff Detail
Event Timeline |