The following issue has been UPDATED. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=360 
====================================================================== 
Reported By:                ryo
Assigned To:                aaron
====================================================================== 
Project:                    DBMail
Issue ID:                   360
Category:                   IMAP daemon
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
target:                      
Resolution:                 fixed
Fixed in Version:           2.1.7
====================================================================== 
Date Submitted:             08-Jun-06 13:43 CEST
Last Modified:              20-Jul-06 16:12 CEST
====================================================================== 
Summary:                    Memory leak  when executing IMAP APPEND command.
Description: 
I'm sorry, my Engilish is poor.

In the dbmail-imapsession.c:build_args_array_ext() function, if 
the "originalString" variable is NULL then the_args[0] is set NULL
(dbmail-imapsessoin.c:1727 in SVN 2161). After this, this function
calls free_args() function. 

But in the free_args() function, in the case of the_args[0] == NULL
the dm_free() function is not executed even if the_args array have
some elements. This causes memory leak. In particular, IMAP APPEND
command causes large size memory leak.

And, the memory allocated by g_string_new() is not freed in the 
db.c:db_imap_append_msg().

Please see the attached file(dbmail-imapappend-free.patch).

====================================================================== 

---------------------------------------------------------------------- 
 aaron - 08-Jun-06 15:10  
---------------------------------------------------------------------- 
Now in SVN. Thanks! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-Jun-06 13:43 ryo            New Issue                                    
08-Jun-06 13:43 ryo            File Added: dbmail-imapappend-free.patch         
          
08-Jun-06 15:10 aaron          Status                   new => resolved     
08-Jun-06 15:10 aaron          Fixed in Version          => SVN Trunk       
08-Jun-06 15:10 aaron          Resolution               open => fixed       
08-Jun-06 15:10 aaron          Assigned To               => aaron           
08-Jun-06 15:10 aaron          Note Added: 0001230                          
20-Jul-06 16:12 paul           Fixed in Version         SVN Trunk => 2.1.7  
======================================================================

Reply via email to