IdFTP - Memory Leak

Giganews Newsgroups
Subject: IdFTP - Memory Leak
Posted by:  Serhan (ser…@kocbank.com.tr)
Date: Thu, 23 Jun 2005

Hi,

I am working with Indy 10.0.52. (Delphi7, Win2000 Pro.) When uploading a
file with IdFTP it leaks 516 bytes of memory according to MemCheck version
2.70.

Is there anything wrong in the following code  ? ( FTP : IdFTP )

Thanks,

Serhan.

procedure TForm1.Button2Click(Sender: TObject);
begin

  FTP.Host := 'aFTPserver';
  FTP.Username := 'aUser';
  FTP.Password := 'aPassword';
  FTP.ConnectTimeout := 15000;
  FTP.AutoLogin := True;

  FTP.Connect;
  FTP.Put('c:\aFile.txt', 'aFile.txt', false);
  FTP.Disconnect;

end;

Replies