[fpc-pascal] Memory Leak's in XMLRead unit
African Wild Dog
paintedlycaon at gmail.com
Wed Nov 8 13:52:22 CET 2017
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
> 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. I will try
to reproduce this error again. I noticed this behavior in my FCGI APP: a
client was sending a mal-formed XML content and my app was generating the
leaks.
My environment: Linux Debian Stretch 64 bits - Lazarus 1.6.4 - fpc 3.0.2.
I'm quite impressed with the processing power of fastcgi fcl-web
applications: they consume little memory (less than 2 MB per instance) and
are very fast to process the requests.
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20171108/422cd8f9/attachment.html>
More information about the fpc-pascal
mailing list