StratumServer: fixed memory leak on shutdown

This commit is contained in:
SChernykh 2023-10-02 08:19:28 +02:00
parent 2ed63ab3ac
commit 8270e0898b

View file

@ -91,6 +91,14 @@ StratumServer::~StratumServer()
{
shutdown_tcp();
{
MutexLock lock(m_blobsQueueLock);
for (BlobsData* data : m_blobsQueue) {
delete data;
}
}
uv_mutex_destroy(&m_blobsQueueLock);
uv_mutex_destroy(&m_showWorkersLock);
uv_mutex_destroy(&m_rngLock);