isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit aad7f903ec175f1862ea96309a9ca341ae911990
parent ff9bf4d91b1d83f6ae74b97b731bc6f3994ce230
Author: Felipe Contreras <felipe.contreras@gmail.com>
Date:   Sun,  7 Apr 2013 10:20:51 -0500

maildir: fix trash path double-free

It should be freed at the very end.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>

Diffstat:
Msrc/drv_maildir.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 ); }