Fix various memory leaks
This commit is contained in:
@@ -316,6 +316,14 @@ xmrig::CnHash::CnHash()
|
||||
}
|
||||
|
||||
|
||||
xmrig::CnHash::~CnHash()
|
||||
{
|
||||
for (auto const& x : m_map) {
|
||||
delete m_map[x.first];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
xmrig::cn_hash_fun xmrig::CnHash::fn(const Algorithm &algorithm, AlgoVariant av, Assembly::Id assembly)
|
||||
{
|
||||
assert(cnHash.m_map.count(algorithm));
|
||||
|
||||
Reference in New Issue
Block a user