Re: Memory Leak in TIdSMTP

Giganews Newsgroups
Subject: Re: Memory Leak in TIdSMTP
Posted by:  Remy Lebeau (TeamB) (
Date: Mon, 20 Dec 2004

"Thomas Zangl" <usen…> wrote in message

> I noticed a memory leak in TIdSMTP:

Which version of Indy 10 are you using?  Are you using the absolute latest

> MemCheck version 2.70
> Total leak: 40 bytes

Your log is meaningless without showing the associated source code that is
producing the log.  Or at least the symbol names in the call stack.  Showing
memory addresses only does not help pin-point the code that is leaking.  You
need to show your actual code that is performing the SMTP operations that
are reporting leaks.

In any case, looking at the current snapshot, I do not see any code that
would be leaking TIdSMTPEnhancedCode instances.  There are only four places
where TIdSMTPEnhancedCode is instantiated, and all four instances are
properly freed by the appropriate destructors.



In response to

Memory Leak in TIdSMTP posted by Thomas Zangl on Mon, 20 Dec 2004