diff --git a/net/auth/src/TAuthenticate.cxx b/net/auth/src/TAuthenticate.cxx index b13a488a7a00e..0a2d49cde140b 100644 --- a/net/auth/src/TAuthenticate.cxx +++ b/net/auth/src/TAuthenticate.cxx @@ -842,8 +842,7 @@ Bool_t TAuthenticate::Authenticate() } // Cleanup timer - if (alarm) - SafeDelete(alarm); + SafeDelete(alarm); return rc; @@ -3870,10 +3869,8 @@ Int_t TAuthenticate::DecodeRSAPublic(const char *rsaPubExport, rsa_NUMBER &rsa_n TRSA_fun::RSA_num_sget()(&rsa_n, rsa_n_exp); TRSA_fun::RSA_num_sget()(&rsa_d, rsa_d_exp); - if (rsa_n_exp) - if (rsa_n_exp) delete[] rsa_n_exp; - if (rsa_d_exp) - if (rsa_d_exp) delete[] rsa_d_exp; + delete[] rsa_n_exp; + delete[] rsa_d_exp; } else ::Info("TAuthenticate::DecodeRSAPublic","bad format for input string"); diff --git a/proof/proof/src/TProofServ.cxx b/proof/proof/src/TProofServ.cxx index f27f2fd6412ac..a02489515305f 100644 --- a/proof/proof/src/TProofServ.cxx +++ b/proof/proof/src/TProofServ.cxx @@ -4677,7 +4677,7 @@ void TProofServ::ProcessNext(TString *slb) // Remove aborted queries from the list if (fPlayer->GetExitStatus() == TVirtualProofPlayer::kAborted) { - if (pqr) SafeDelete(pqr); + SafeDelete(pqr); if (fQMgr) fQMgr->RemoveQuery(pq); } else { // Keep in memory only light infor about a query @@ -6527,7 +6527,7 @@ void TProofServ::HandleSubmerger(TMessage *mess) deleteplayer = kFALSE; } - if (t) SafeDelete(t); + SafeDelete(t); } diff --git a/proof/proofplayer/src/TProofPlayer.cxx b/proof/proofplayer/src/TProofPlayer.cxx index 59022265659aa..b2581fffbda16 100644 --- a/proof/proofplayer/src/TProofPlayer.cxx +++ b/proof/proofplayer/src/TProofPlayer.cxx @@ -1904,8 +1904,7 @@ TProofPlayerRemote::~TProofPlayerRemote() SafeDelete(fFeedbackLists); SafeDelete(fPacketizer); - if (fProcessMessage) - SafeDelete(fProcessMessage); + SafeDelete(fProcessMessage); } ////////////////////////////////////////////////////////////////////////////////