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

View File

@@ -2159,7 +2159,12 @@ int p2pool::run()
bkg_jobs_tracker->wait();
#ifdef WITH_RANDOMX
delete m_miner;
{
MutexLock lock(m_minerLock);
delete m_miner;
m_miner = nullptr;
}
#endif
delete m_stratumServer;
delete m_p2pServer;

View File

@@ -171,7 +171,12 @@ void ZMQReader::run()
}
ON_SCOPE_LEAVE([this]() {
m_monitor->abort();
try {
m_monitor->abort();
}
catch(...) {
LOGERR(1, "m_monitor->abort() failed");
}
uv_thread_join(&m_monitorThread);
});