Fixed memory leak after loading block cache

This commit is contained in:
SChernykh
2022-03-24 18:30:23 +01:00
parent 8b27faad6d
commit 028a5d0c88
2 changed files with 41 additions and 11 deletions

View File

@@ -149,7 +149,7 @@ private:
uint32_t m_maxIncomingPeers;
uv_rwlock_t m_cachedBlocksLock;
unordered_map<hash, PoolBlock*> m_cachedBlocks;
unordered_map<hash, PoolBlock*>* m_cachedBlocks;
private:
static void on_timer(uv_timer_t* timer) { reinterpret_cast<P2PServer*>(timer->data)->on_timer(); }