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 sftnight committed Aug 19, 2024
1 parent c7dc9ae commit 989c114
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 989c114

Please sign in to comment.