From d8becf2ee1554948849a3313df3f1afb50491233 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 28 Jul 2017 10:19:17 +0100 Subject: blockchain: fix cryptonight buffer leak on exit --- src/cryptonote_core/blockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cryptonote_core') diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 1313f9141..435a3fc0c 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -3549,7 +3549,7 @@ void Blockchain::block_longhash_worker(uint64_t height, const std::vector for (const auto & block : blocks) { if (m_cancel) - return; + break; crypto::hash id = get_block_hash(block); crypto::hash pow = get_block_longhash(block, height++); map.emplace(id, pow); -- cgit v1.2.3