StratumServer: fixed memory leak on shutdown
This commit is contained in:
@@ -91,6 +91,14 @@ StratumServer::~StratumServer()
|
|||||||
{
|
{
|
||||||
shutdown_tcp();
|
shutdown_tcp();
|
||||||
|
|
||||||
|
{
|
||||||
|
MutexLock lock(m_blobsQueueLock);
|
||||||
|
|
||||||
|
for (BlobsData* data : m_blobsQueue) {
|
||||||
|
delete data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
uv_mutex_destroy(&m_blobsQueueLock);
|
uv_mutex_destroy(&m_blobsQueueLock);
|
||||||
uv_mutex_destroy(&m_showWorkersLock);
|
uv_mutex_destroy(&m_showWorkersLock);
|
||||||
uv_mutex_destroy(&m_rngLock);
|
uv_mutex_destroy(&m_rngLock);
|
||||||
|
|||||||
Reference in New Issue
Block a user