blockchain: fix cryptonight buffer leak on exit

This commit is contained in:
moneromooo-monero 2017-07-28 10:19:17 +01:00
parent 91aa90fc79
commit d8becf2ee1
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -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);