From 7bce433b89eabf69c9ffc4442a3421259188c86e Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 7 Jan 2019 16:31:13 +0000 Subject: [PATCH] blockchain: don't propagate exception past dtor Coverity 190660 --- src/cryptonote_core/blockchain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index fb970f3b8..5b81129bb 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -130,7 +130,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