smtp memory leak

Giganews Newsgroups
Subject: smtp memory leak
Posted by:  Cyril VELTER (cyril.velt…
Date: Mon, 23 May 2005

There is a small memory leak in TIdReplySMTP.Create(ACollection :
TCollection;AReplyTexts : TIdReplies)

this function allocate FEnhancedCode which is already allocated by the
inherited call (which in turn call TIdReplySMTP.Create(ACollection :
TCollection) where the first allocation take place).

FEnhancedCode := TIdSmtpEnhancedCode.Create should be removed from
TIdReplySMTP.Create(ACollection : TCollection;AReplyTexts : TIdReplies).