mirror of
https://github.com/monero-project/monero.git
synced 2024-12-26 18:29:26 -05: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)
|
||||
{
|
||||
if (m_cancel)
|
||||
return;
|
||||
break;
|
||||
crypto::hash id = get_block_hash(block);
|
||||
crypto::hash pow = get_block_longhash(block, height++);
|
||||
map.emplace(id, pow);
|
||||
|
Loading…
Reference in New Issue
Block a user