commit 04ca97920d4ae1ad7b7c8b8e685fbbb29919d6dd
parent e71ad53b7fb004fdc6ecc464187d03e5dc77758e
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Sun, 22 May 2011 17:23:23 +0200
fix potential double free
the store may be discarded before we reach maildir_select() again, which
will leave us with a dangling pointer.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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;