Fixed Coverity errors

This commit is contained in:
SChernykh
2025-05-15 21:49:41 +02:00
parent 3fc68e680a
commit 5eabfb0a1a
2 changed files with 12 additions and 2 deletions
+5
View File
@@ -2159,7 +2159,12 @@ int p2pool::run()
bkg_jobs_tracker->wait(); bkg_jobs_tracker->wait();
#ifdef WITH_RANDOMX #ifdef WITH_RANDOMX
{
MutexLock lock(m_minerLock);
delete m_miner; delete m_miner;
m_miner = nullptr;
}
#endif #endif
delete m_stratumServer; delete m_stratumServer;
delete m_p2pServer; delete m_p2pServer;
+5
View File
@@ -171,7 +171,12 @@ void ZMQReader::run()
} }
ON_SCOPE_LEAVE([this]() { ON_SCOPE_LEAVE([this]() {
try {
m_monitor->abort(); m_monitor->abort();
}
catch(...) {
LOGERR(1, "m_monitor->abort() failed");
}
uv_thread_join(&m_monitorThread); uv_thread_join(&m_monitorThread);
}); });