From 04ca97920d4ae1ad7b7c8b8e685fbbb29919d6dd Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 22 May 2011 17:23:23 +0200 Subject: [PATCH] fix potential double free the store may be discarded before we reach maildir_select() again, which will leave us with a dangling pointer. --- src/drv_maildir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drv_maildir.c b/src/drv_maildir.c index e6ce1e4..2688612 100644 --- a/src/drv_maildir.c +++ b/src/drv_maildir.c @@ -763,6 +763,7 @@ maildir_select( store_t *gctx, int create, maildir_cleanup( gctx ); gctx->msgs = 0; + ctx->excs = 0; ctx->uvfd = -1; #ifdef USE_DB ctx->db = 0;