mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
blockchain: fix cryptonight buffer leak on exit
This commit is contained in:
parent
91aa90fc79
commit
d8becf2ee1
@ -3549,7 +3549,7 @@ void Blockchain::block_longhash_worker(uint64_t height, const std::vector<block>
|
|||||||
for (const auto & block : blocks)
|
for (const auto & block : blocks)
|
||||||
{
|
{
|
||||||
if (m_cancel)
|
if (m_cancel)
|
||||||
return;
|
break;
|
||||||
crypto::hash id = get_block_hash(block);
|
crypto::hash id = get_block_hash(block);
|
||||||
crypto::hash pow = get_block_longhash(block, height++);
|
crypto::hash pow = get_block_longhash(block, height++);
|
||||||
map.emplace(id, pow);
|
map.emplace(id, pow);
|
||||||
|
Loading…
Reference in New Issue
Block a user