Re: Memory Leak in TIdSMTP

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

"Thomas Zangl" <usen…@tzis.net> wrote in message
news:B08CF931A3B8E240usen…@tzis.net...

> I noticed a memory leak in TIdSMTP:

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

> 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.

Gambit

Replies

In response to

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