dovecot-1.3: Memory leak fixes.

dovecot at dovecot.org dovecot at dovecot.org
Sun Apr 12 04:59:33 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.3/rev/eb8a2d17fd44
changeset: 9075:eb8a2d17fd44
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Apr 11 21:59:26 2009 -0400
description:
Memory leak fixes.

diffstat:

2 files changed, 3 insertions(+), 4 deletions(-)
src/lib-index/mail-index-map.c             |    6 ++----
src/lib-storage/index/shared/shared-list.c |    1 +

diffs (29 lines):

diff -r c77a3902dc5e -r eb8a2d17fd44 src/lib-index/mail-index-map.c
--- a/src/lib-index/mail-index-map.c	Sat Apr 11 21:46:32 2009 -0400
+++ b/src/lib-index/mail-index-map.c	Sat Apr 11 21:59:26 2009 -0400
@@ -1146,12 +1146,10 @@ void mail_index_record_map_move_to_priva
 					    map->hdr.record_size);
 		mail_index_record_map_unlink(map);
 		map->rec_map = new_map;
+		if (map->rec_map->modseq != NULL)
+			new_map->modseq = mail_index_map_modseq_clone(map->rec_map->modseq);
 	} else {
 		new_map = map->rec_map;
-	}
-	if (map->rec_map->modseq != NULL) {
-		new_map->modseq =
-			mail_index_map_modseq_clone(map->rec_map->modseq);
 	}
 
 	if (new_map->records_count != map->hdr.messages_count) {
diff -r c77a3902dc5e -r eb8a2d17fd44 src/lib-storage/index/shared/shared-list.c
--- a/src/lib-storage/index/shared/shared-list.c	Sat Apr 11 21:46:32 2009 -0400
+++ b/src/lib-storage/index/shared/shared-list.c	Sat Apr 11 21:59:26 2009 -0400
@@ -214,6 +214,7 @@ static int shared_list_iter_deinit(struc
 	struct shared_mailbox_list_iterate_context *ctx =
 		(struct shared_mailbox_list_iterate_context *)_ctx;
 
+	imap_match_deinit(&ctx->glob);
 	i_free(ctx);
 	return 0;
 }


More information about the dovecot-cvs mailing list