[fpc-pascal] Memory Leak's in XMLRead unit
Michael Van Canneyt
michael at freepascal.org
Wed Nov 8 13:59:53 CET 2017
On Wed, 8 Nov 2017, African Wild Dog wrote:
> 2017-11-07 23:57 GMT-02:00 Michael Van Canneyt <michael at freepascal.org>:
>> The "memory leak" is the exception object: you are not catching the
>> Change your program to the below, and you'll see that it is not leaking
>> memory in the XML routines itself.
> 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.
More information about the fpc-pascal