Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2014-10

Memleak in TFPHttpClient?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

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

Reply by email

Michael Van Canneyt
to Leonardo M. Ramé

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.

Leonardo M. Ramé wrote 27 lines
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

Reply by email

Leonardo M. Ramé
to Michael Van Canneyt

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

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

________________________________

Earlier message 45 lines
From: Michael Van Canneyt To: FPC developers' list 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 > >

Reply by email