dovecot: mail_index_transaction_reset() didn't reset mail_index_...

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 22 03:05:34 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/a567e6863aa7
changeset: 7020:a567e6863aa7
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 22 02:42:42 2007 +0200
description:
mail_index_transaction_reset() didn't reset mail_index_ext_set_reset_id()
calls. Those calls also leaked memory.

diffstat:

1 file changed, 2 insertions(+)
src/lib-index/mail-index-transaction.c |    2 ++

diffs (12 lines):

diff -r 08a3ba5de497 -r a567e6863aa7 src/lib-index/mail-index-transaction.c
--- a/src/lib-index/mail-index-transaction.c	Sat Dec 22 01:59:42 2007 +0200
+++ b/src/lib-index/mail-index-transaction.c	Sat Dec 22 02:42:42 2007 +0200
@@ -73,6 +73,8 @@ void mail_index_transaction_reset(struct
 		array_free(&t->ext_resizes);
 	if (array_is_created(&t->ext_resets))
 		array_free(&t->ext_resets);
+	if (array_is_created(&t->ext_reset_ids))
+		array_free(&t->ext_reset_ids);
 
 	t->first_new_seq = mail_index_view_get_messages_count(t->view)+1;
 	t->last_new_seq = 0;


More information about the dovecot-cvs mailing list