[fpc-devel] Memleak in TFPHttpClient?

Michael Van Canneyt michael at freepascal.org
Tue Oct 28 14:58:45 CET 2014



Strange. 
I have debugged it for memory leaks in the past, and fixed all reported leaks.

Please report a bug on the bugtracker. if possible, attach the output of heaptrc.

Michael.

On Tue, 28 Oct 2014, Leonardo M. Ramé wrote:

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


More information about the fpc-devel mailing list