<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=""><span style="" class="">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.</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=""><br style="" class=""><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=""><span style="" class="">I used Free Pascal
Compiler version 2.7.1 [2014/10/17] for x86_64<br 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=""><span style="" class=""><br 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=""><span style="" class="">program test;<br class="" style=""><br style="" class="">{$mode objfpc}<br style="" class=""><br style="" class="">uses<br style="" class=""> classes,<br style="" class=""> fphttpclient;<br style="" class=""><br style="" class="">var<br style="" class=""> lHttp: TFPHttpClient;<br style="" class="">begin<br style="" class=""> lHttp :=
TFPHttpClient.create(nil);<br style="" class=""> try<br style="" class=""> lHttp.Get('some.web.site');<br style="" class=""> finally<br style="" class=""> lHttp.Free;<br style="" class=""> end;<br style="" class="">end.<br style="" class=""></span></div><div style="" class=""> </div><div style="" class="">Leonardo M. Ramé
<br style="" class="">http://leonardorame.blogspot.com</div></div></body></html>