ICS HttpServer memory leak

Giganews Newsgroups
Subject: ICS HttpServer memory leak
Posted by:  Brayn (brayn@nospam.org)
Date: Sun, 16 Mar 2008

Hello,

I'm using ICS HttpServer and I have a code:

  ClientCnx.DocStream := TMemoryStream.Create;
  ClientCnx.DocStream.Write(Header[1], Length(Header));
  ClientCnx.DocStream.CopyFrom(MS2, MS2.Size);
  MS2.Free;
  ClientCnx.SendStream;

Some times the FastMM memory leak tool reports memory leak
in line:

  ClientCnx.DocStream := TMemoryStream.Create;

Why? do I have to release this stream?Where is the place to do it?

Thanks

Replies