[fpc-pascal] Where and Why is there a memory leak?

Ryan Joseph ryan at thealchemistguild.com
Wed Sep 6 12:03:02 CEST 2017

> On Sep 6, 2017, at 4:55 PM, Graeme Geldenhuys <mailinglists at geldenhuys.co.uk> wrote:
> Either way, modifying the example to use a getter method AND TAggregatedObject, I managed to get rid of both memory leaks. Here is the working [memory leak free] code now:

Does the original code work if you just add the Free() call? I would expect it to leak without that.

	Ryan Joseph

More information about the fpc-pascal mailing list