The attached 7zip file contins the two *.pas files that have the changes needed to fix the memory leak.
They should be located in the directory
C:\users\username\AppData\local\onlinepackagemanager\ packages\fortes4lazarus3.24
Make sure you rename / backup the original files before replacing them.
In the files you can locate the changes by searching for the comment //JR: .
I'll take another look to see how I implemented the summing. -- It's been a few years since I created the reports, so....
If you want to see a example report go to the website
www.fitall.com and the menu items Downloads > SIP > Evaluation Edition.
(The Simple Inventory Program Evaluation Edition does not allow the actual printing or saving of the pdf reports that are generated.)