diff --git a/math/mathmore/test/testInterpolation.cxx b/math/mathmore/test/testInterpolation.cxx index 631978201a8b5..50766c1c09378 100644 --- a/math/mathmore/test/testInterpolation.cxx +++ b/math/mathmore/test/testInterpolation.cxx @@ -34,7 +34,7 @@ void interpolate( const ROOT::Math::Interpolator & itp, bool drawSame = false ) double xi = 0.; Float_t xcoord[n], ycoord[n]; - for ( i = 0; i < 50; ++i) { + for (i = 0; i < n; ++i) { xi = 0.2 * i; // JH replacing for ( double xi = 0; xi < 10.01; xi += 0.2) { xcoord[i] = xi; diff --git a/test/stressHistogram.cxx b/test/stressHistogram.cxx index acb8f86497229..3e9a49c089541 100644 --- a/test/stressHistogram.cxx +++ b/test/stressHistogram.cxx @@ -10229,6 +10229,10 @@ int stressHistogram() << gROOT->GetGitBranch() << "@" << gROOT->GetGitCommit() << std::endl; std::cout <<"****************************************************************************\n"; + if (cleanHistos) { + delete ht2; + delete htp2; + } return GlobalStatus; } diff --git a/test/stressLinear.cxx b/test/stressLinear.cxx index 4a198019277f3..e9b9c52aaadb5 100644 --- a/test/stressLinear.cxx +++ b/test/stressLinear.cxx @@ -2249,11 +2249,11 @@ void spstress_matrix_fill(Int_t rsize,Int_t csize) { Bool_t ok = kTRUE; - if (csize < 4) { - Error("spstress_matrix_fill","rsize should be >= 4"); - ok = kFALSE; - StatusPrint(2,"Filling, Inserting, Using",ok); - return; + if (rsize < 4) { + Error("spstress_matrix_fill", "rsize should be >= 4"); + ok = kFALSE; + StatusPrint(2, "Filling, Inserting, Using", ok); + return; } if (csize < 4) { diff --git a/tmva/tmva/inc/TMVA/DNN/Layer.h b/tmva/tmva/inc/TMVA/DNN/Layer.h index 3453057594f38..08fdc60a29c14 100644 --- a/tmva/tmva/inc/TMVA/DNN/Layer.h +++ b/tmva/tmva/inc/TMVA/DNN/Layer.h @@ -249,6 +249,7 @@ TLayer::TLayer(const TLayer &layer) { Architecture_t::Copy(fWeights, layer.GetWeights()); Architecture_t::Copy(fBiases, layer.GetBiases()); + fDropoutProbability = 0.; } //______________________________________________________________________________ diff --git a/tmva/tmva/src/HyperParameterOptimisation.cxx b/tmva/tmva/src/HyperParameterOptimisation.cxx index 6e96c0ada093d..1b2968022163e 100644 --- a/tmva/tmva/src/HyperParameterOptimisation.cxx +++ b/tmva/tmva/src/HyperParameterOptimisation.cxx @@ -32,6 +32,7 @@ TMVA::HyperParameterOptimisationResult::HyperParameterOptimisationResult() : fROCAVG(0.0), fROCCurves(std::make_shared()) { + fROCAVG = 0.; } TMVA::HyperParameterOptimisationResult::~HyperParameterOptimisationResult() diff --git a/tmva/tmvagui/src/rulevisHists.cxx b/tmva/tmvagui/src/rulevisHists.cxx index 1edd521d1143d..2187ef89cb97c 100644 --- a/tmva/tmvagui/src/rulevisHists.cxx +++ b/tmva/tmvagui/src/rulevisHists.cxx @@ -263,4 +263,5 @@ void TMVA::rulevisHists( TDirectory *rfdir, TDirectory *vardir, TDirectory *corr TString fname = Form( "plots/%s_c%i", outputName.Data(), countCanvas+1 ); TMVAGlob::imgconv( c[countCanvas], fname ); } + delete[] c; }