From 4550b579aa8aa983aa83c840ae988ba04599243a Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Sat, 27 Apr 2024 11:39:34 +0200 Subject: [PATCH] [tmva] branches on stack, local scope, reset before return Fixes https://github.com/root-project/root/issues/10010 All the credit for this fix goes to pcanal and anaumann --- tmva/tmva/src/DataSet.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/tmva/tmva/src/DataSet.cxx b/tmva/tmva/src/DataSet.cxx index b2b4495841e1f..726ba0c12b55a 100644 --- a/tmva/tmva/src/DataSet.cxx +++ b/tmva/tmva/src/DataSet.cxx @@ -820,6 +820,7 @@ TTree* TMVA::DataSet::GetTree( Types::ETreeType type ) delete[] metVals[i]; delete[] metVals; + tree->ResetBranchAddresses(); return tree; }