Looks like it is not a Python thing, if we run an equivalent C++ macro:
{
TFile rtinput("tribic2017.root");
auto meas_tree = (TTree*)rtinput.Get("measurements");
auto nentries = meas_tree->GetEntries();
for(Long64_t i = 0; i < nentries; ++i) {
meas_tree->GetEntry(i);
}
}
the same leak appears.
@pcanal any thoughts on this?