[fpc-devel] Memleak in TFPHttpClient?

Leonardo M. Ramé martinrame at yahoo.com
Tue Oct 28 15:16:16 CET 2014



Reported: 0026959: Memleak in TFHttpClient - Free Pascal/Lazarus Bug Tracker

 
 
Leonardo M. Ramé 
http://leonardorame.blogspot.com


________________________________
 From: Michael Van Canneyt <michael at freepascal.org>
To: FPC developers' list <fpc-devel at lists.freepascal.org> 
Sent: Tuesday, October 28, 2014 10:58 AM
Subject: Re: [fpc-devel] Memleak in TFPHttpClient?
 



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
> 
>
_______________________________________________
fpc-devel maillist  -  fpc-devel at lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20141028/bd123155/attachment.html>


More information about the fpc-devel mailing list