aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-07-28 10:19:17 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-07-28 10:19:17 +0100
commitd8becf2ee1554948849a3313df3f1afb50491233 (patch)
tree6300375ee3feddab2ee808e2ccc2c4df8cab180b /src
parentblockchain: ensure all blocks get their longhash precalculated (diff)
downloadmonero-d8becf2ee1554948849a3313df3f1afb50491233.tar.xz
blockchain: fix cryptonight buffer leak on exit
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
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<block>
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);