commit 92b8a27626b550450b9d6983d6a8377987b4f8a7
Author:     Felipe Contreras <felipe.contre...@gmail.com>
AuthorDate: Sun Apr 7 10:20:51 2013 -0500
Commit:     Oswald Buddenhagen <o...@users.sf.net>
CommitDate: Sun Apr 7 18:32:52 2013 +0200

    maildir: fix trash path double-free
    
    It should be freed at the very end.
    
    Signed-off-by: Felipe Contreras <felipe.contre...@gmail.com>

 src/drv_maildir.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/drv_maildir.c b/src/drv_maildir.c
index 629da10..78b6c19 100644
--- a/src/drv_maildir.c
+++ b/src/drv_maildir.c
@@ -162,7 +162,6 @@ maildir_cleanup( store_t *gctx )
        if (ctx->db)
                ctx->db->close( ctx->db, 0 );
 #endif /* USE_DB */
-       free( ctx->trash );
        free( gctx->path );
        free( ctx->excs );
        if (ctx->uvfd >= 0)
@@ -173,6 +172,7 @@ static void
 maildir_disown_store( store_t *gctx )
 {
        maildir_cleanup( gctx );
+       free( ((maildir_store_t *)gctx)->trash );
        free_string_list( gctx->boxes );
        free( gctx );
 }

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to