diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-07 16:31:13 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-07 16:32:50 +0000 |
commit | a67b77a9eb79bd2b7a3586852ff8386114ab4d35 (patch) | |
tree | 7b8db4a37c584b9983b835b2cdfec324d5e09d26 /src | |
parent | Merge pull request #4969 (diff) | |
download | monero-a67b77a9eb79bd2b7a3586852ff8386114ab4d35.tar.xz |
blockchain: don't propagate exception past dtor
Coverity 190660
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index bbac20eaa..965e1704b 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -173,7 +173,8 @@ Blockchain::Blockchain(tx_memory_pool& tx_pool) : //------------------------------------------------------------------ Blockchain::~Blockchain() { - deinit(); + try { deinit(); } + catch (const std::exception &e) { /* ignore */ } } //------------------------------------------------------------------ bool Blockchain::have_tx(const crypto::hash &id) const |