bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: manual memory management


From: Frederic Gobry
Subject: Re: manual memory management
Date: Fri, 8 Nov 2002 17:11:58 +0100
User-agent: Mutt/1.4i

> message_destroy()  this will destroy any headers, attributes etc ..
> that was cache.  message_t used a reference count to know when
> they should deallocate.

Thanks. I read the code of header_destroy to have an idea of what
these 'owner' fields were, and from that I had the feeling that
destroy was somehow intended for internal use...

> Calling the message_destroy() should give the memory back, not very
> efficient in the sense that you clear the caching etc .. but if
> memory footprint is more important ...

In a part of the code, I need to loop over the messages in a POP
mailbox, so caching is not essential here.

-- 
Frédéric Gobry    SMARTDATA       
      ---         http://www.smartdata.ch
Software Engineer Lausanne - Switzerland
                  +41 21 693 84 98
                                  

Attachment: pgpIVjBHeLzpZ.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]