<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div style="" class=""><br><span style="" class=""></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class="">Reported: <span style="" class=""><a style="" class="" href="http://mantis.freepascal.org/view.php?id=26959">0026959: Memleak in TFHttpClient - Free Pascal/Lazarus Bug Tracker</a><br style="" class=""></span></div><div> </div><div style="" class=""> </div><div style="" class="">Leonardo M. Ramé
<br style="" class="">http://leonardorame.blogspot.com</div><div style="" class=""><br style="" class=""></div> <div class="" style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="" class="" dir="ltr"> <hr style="" class="" size="1"> <font style="" class="" face="Arial" size="2"> <b style="" class=""><span class="" style="font-weight:bold;">From:</span></b> Michael Van Canneyt <michael@freepascal.org><br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">To:</span></b> FPC developers' list <fpc-devel@lists.freepascal.org> <br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Sent:</span></b> Tuesday, October 28, 2014 10:58 AM<br style="" class=""> <b
style="" class=""><span class="" style="font-weight: bold;">Subject:</span></b> Re: [fpc-devel] Memleak in TFPHttpClient?<br style="" class=""> </font> </div> <div style="" class=""><br style="" class=""><br style="" class="" clear="none"><br style="" class="" clear="none">Strange. <br style="" class="" clear="none">I have debugged it for memory leaks in the past, and fixed all reported leaks.<br style="" class="" clear="none"><br style="" class="" clear="none">Please report a bug on the bugtracker. if possible, attach the output of heaptrc.<br style="" class="" clear="none"><br style="" class="" clear="none">Michael.<br style="" class="" clear="none"><div style="" class="" id="yqtfd33273"><br style="" class="" clear="none">On Tue, 28 Oct 2014, Leonardo M. Ramé wrote:<br style="" class="" clear="none"><br style="" class="" clear="none">> Hi, I was trying to find a memory leak in one of my apps, and found the cause was TFPHttpClient. To reproduce the
issue, just compile this simple program with "-gh" and run.<br style="" class="" clear="none">> <br style="" class="" clear="none">> I used Free Pascal Compiler version 2.7.1 [2014/10/17] for x86_64<br style="" class="" clear="none">> <br style="" class="" clear="none">> program test;<br style="" class="" clear="none">> <br style="" class="" clear="none">> {$mode objfpc}<br style="" class="" clear="none">> <br style="" class="" clear="none">> uses<br style="" class="" clear="none">> classes,<br style="" class="" clear="none">> fphttpclient;<br style="" class="" clear="none">> <br style="" class="" clear="none">> var<br style="" class="" clear="none">> lHttp: TFPHttpClient;<br style="" class="" clear="none">> begin<br style="" class="" clear="none">> lHttp := TFPHttpClient.create(nil);<br style="" class="" clear="none">> try<br style="" class="" clear="none">>
lHttp.Get('some.web.site');<br style="" class="" clear="none">> finally<br style="" class="" clear="none">> lHttp.Free;<br style="" class="" clear="none">> end;<br style="" class="" clear="none">> end.<br style="" class="" clear="none">> <br style="" class="" clear="none">> Leonardo M. Ramé<br style="" class="" clear="none">> <a style="" class="" shape="rect" href="http://leonardorame.blogspot.com/" target="_blank">http://leonardorame.blogspot.com</a><br style="" class="" clear="none">> <br style="" class="" clear="none">></div><br style="" class="">_______________________________________________<br style="" class="" clear="none">fpc-devel maillist - <a style="" class="" shape="rect" ymailto="mailto:fpc-devel@lists.freepascal.org" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br style="" class="" clear="none"><a style=""
class="" shape="rect" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><div style="" class="" id="yqtfd09193"><br style="" class="" clear="none"></div><br style="" class=""><br style="" class=""></div> </div> </div> </div></body></html>