dovecot-2.2: dsync: Fixed assert-crash / memory leak on error ha...

dovecot at dovecot.org dovecot at dovecot.org
Thu Oct 23 01:17:45 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/d92c1c666bc3
changeset: 17982:d92c1c666bc3
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 23 04:16:48 2014 +0300
description:
dsync: Fixed assert-crash / memory leak on error handling path.

diffstat:

 src/doveadm/dsync/dsync-mailbox-import.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r b534125f8baf -r d92c1c666bc3 src/doveadm/dsync/dsync-mailbox-import.c
--- a/src/doveadm/dsync/dsync-mailbox-import.c	Thu Oct 23 03:10:12 2014 +0300
+++ b/src/doveadm/dsync/dsync-mailbox-import.c	Thu Oct 23 04:16:48 2014 +0300
@@ -2064,6 +2064,7 @@
 				error_field, mail->uid,
 				mailbox_get_last_error(importer->box, NULL));
 			importer->failed = TRUE;
+			mailbox_save_cancel(&save_ctx);
 			return;
 		}
 		dsync_mailbox_save_set_nonminimal(save_ctx, &mail2);


More information about the dovecot-cvs mailing list