[fpc-devel] Memleak in TFPHttpClient?

Leonardo M. Ramé martinrame at yahoo.com
Tue Oct 28 14:50:25 CET 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20141028/1d1a47aa/attachment.html>


More information about the fpc-devel mailing list