Hello,
if I wish to manage in a “clean” way without any memory leak,
Do I need to delete the roofitresult object after a fit ?
RooFitResult *roofitresult;
roofitresult=mypdf.fitTo(mydataset);
//I no more need roofitresult
As a fact, the allocation of roofitresult object has been made by “fitTo”
–>should I manage to delete roofitresult when I no more need it ?
it seems that all roofit programs that I saw from colleagues so far, forget to delete this object ? would that drive to a (small) memory leak ?
Thank you