On Wed, 8 Nov 2017, African Wild Dog wrote:

2017-11-07 23:57 GMT-02:00 Michael Van Canneyt <mich...@freepascal.org>:


The "memory leak" is the exception object: you are not catching the
exception.

Change your program to the below, and you'll see that it is not leaking
memory in the XML routines itself.

Michael.


In fact, protecting with Try..Except does not generate the leak.

That is because you catch the exception object.
If you enable line info, you see that the unreleased memory is the exception
object and its error message.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to