I am trying to fill a tree with branches with user-defined class-objects. When I am finished writing the file with the tree as in ‘t_cands->Write()’, save the file as ‘outfile ->Save();’ and then close the file as ‘outfile ->Close();’, I get the following error and the macro crashes:
double free or corruption (out)
I don’t understand the meaning of the error or the cause. It happens just when I try to close the file in the macro.
Any help in identifying the error would be much appreciated as I am new to root.
ROOT Version: 6.28/06
Platform: macOS Sonomo 14.0
Compiler: clang-1500.0.40.1