I am using ROOT version 4.04 on a Solaris 9 system and I am experiencing a possible memory leak when using the Print() command in a loop as in the following sample code:
TCanvas *canvas = new TCanvas(1);
TF1 *plot = new TF1("plot","sin(x)",0,6);
I estimate the leak to be about 3kB per use of the Print() command. However, when using Print(“sample.jpg”,“jpg”), I estimate the leak to be about 800 bytes per use. Using “top” I noticed the memory usage going up for my program. By commenting out the Print() command, the memory usage remained constant. This loop will be called many thousand times, so this leak is a significant problem.
I noticed this was discussed in 2001, and it was fixed. Thanks in advance for any help.