<div dir="ltr">2017-11-07 23:57 GMT-02:00 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
<br></span>
The "memory leak" is the exception object: you are not catching the exception.<br>
<br>
Change your program to the below, and you'll see that it is not leaking<br>
memory in the XML routines itself.<br>
<br>
Michael.<br></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">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. <br></div><div class="gmail_extra"><br></div><div class="gmail_extra">My environment: Linux Debian Stretch 64 bits - Lazarus 1.6.4 - fpc 3.0.2.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-">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.</span></span></div><div class="gmail_extra"><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-"><br></span></span></div><div class="gmail_extra"><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-">Regards<br></span></span></div></div>