fixed a few errors reported by valgrind

This commit is contained in:
csoler 2021-12-22 14:03:29 +01:00
parent f6892066bc
commit 8af6ca9fb7
3 changed files with 6 additions and 1 deletions

View File

@ -161,6 +161,8 @@ OpenPGPSDKHandler::OpenPGPSDKHandler(const std::string& pubring, const std::stri
++i ;
}
_pubring_last_update_time = time(NULL) ;
_pubring_changed = false;
RsErr() << "Pubring read successfully." ;
if(secring_exist)

View File

@ -78,9 +78,11 @@ void PendingOperation::finishWithSuccess()
if (!m_finished) {
m_finished = true;
mFinishedCallback();
if (isSuccess())
mSuccessCallback();
mFinishedCallback();
}
}

View File

@ -65,6 +65,7 @@ static std::ostream& torctrldebug()
using namespace Tor;
TorControl::TorControl()
: mControlPort(0),mSocksPort(0),mStatus(NotConnected), mTorStatus(TorOffline),mHasOwnership(false)
{
mSocket = new TorControlSocket(this);
}