dovecot: Don't access freed memory
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 28 22:35:05 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/496b7dad3938
changeset: 5828:496b7dad3938
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 28 22:34:59 2007 +0300
description:
Don't access freed memory
diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
src/lib-index/mail-index-sync-update.c | 3 +--
diffs (14 lines):
diff -r f17d4bccd74d -r 496b7dad3938 src/lib-index/mail-index-sync-update.c
--- a/src/lib-index/mail-index-sync-update.c Thu Jun 28 22:34:50 2007 +0300
+++ b/src/lib-index/mail-index-sync-update.c Thu Jun 28 22:34:59 2007 +0300
@@ -822,9 +822,8 @@ int mail_index_sync_map(struct mail_inde
/* restore refcount before closing the view. this is necessary also
if map got cloned, because view closing would otherwise destroy it */
map->refcount++;
+ mail_index_sync_map_deinit(&sync_map_ctx);
mail_index_view_close(&view);
-
- mail_index_sync_map_deinit(&sync_map_ctx);
i_assert(index->map == map || type == MAIL_INDEX_SYNC_HANDLER_VIEW);
More information about the dovecot-cvs
mailing list