diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2017-10-12 23:14:46 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-11-01 15:23:06 -0400 |
commit | de7053f1141756158c2107bcba376401b4cc94e9 (patch) | |
tree | 6b248c20036e2f7aa2bc8015b36f428b3ae9955a /libbitcoinconsensus.pc.in | |
parent | fd79ed6b202ec872aa794ba6a23d4dfc373a98f1 (diff) | |
download | bitcoin-de7053f1141756158c2107bcba376401b4cc94e9.tar.xz |
[wallet] Fix leak in CDB constructor
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.
Github-Pull: #11492
Rebased-From: 7104de8b1f3a31d3a60009b5dc376adbedac6a9c
Diffstat (limited to 'libbitcoinconsensus.pc.in')
0 files changed, 0 insertions, 0 deletions