Hi @wiso, thank you, I can reproduce the same behaviour, also in C++ with the equivalent code:
for (int i = 0; i < 10; i++) {
for (auto &s : { "result_56159.471__seed_206498109__globals_obs_NONE.root", "result_56159.271__seed_1484912357__globals_obs_NONE.root" }) {
TFile f(s);
auto r = f.Get("fitResult"); // this is a RooFitResult
}
}
An explicit delete works in the C++ case, will check how to free the object from Python.