diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-07-28 10:19:17 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-07-28 10:19:17 +0100 |
commit | d8becf2ee1554948849a3313df3f1afb50491233 (patch) | |
tree | 6300375ee3feddab2ee808e2ccc2c4df8cab180b /src/cryptonote_core/blockchain.cpp | |
parent | blockchain: ensure all blocks get their longhash precalculated (diff) | |
download | monero-d8becf2ee1554948849a3313df3f1afb50491233.tar.xz |
blockchain: fix cryptonight buffer leak on exit
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
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); |