Skip to content

Commit

Permalink
[tmva] branches on stack, local scope, reset before return
Browse files Browse the repository at this point in the history
Fixes root-project#10010

All the credit for this fix goes to pcanal and anaumann
  • Loading branch information
ferdymercury authored and guitargeek committed Apr 28, 2024
1 parent 69d57cd commit 4550b57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tmva/tmva/src/DataSet.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ TTree* TMVA::DataSet::GetTree( Types::ETreeType type )
delete[] metVals[i];
delete[] metVals;

tree->ResetBranchAddresses();
return tree;
}

0 comments on commit 4550b57

Please sign in to comment.