[dovecot-cvs] dovecot/src/imap imap-sort.c,1.21,1.22

cras at dovecot.org cras at dovecot.org
Tue Mar 29 19:52:59 EEST 2005


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv28160

Modified Files:
	imap-sort.c 
Log Message:
SORT might have crashed just before finishing.



Index: imap-sort.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/imap-sort.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- imap-sort.c	29 Mar 2005 16:48:48 -0000	1.21
+++ imap-sort.c	29 Mar 2005 16:52:57 -0000	1.22
@@ -247,12 +247,12 @@
 	while (mailbox_search_next(ctx->search_ctx, mail) > 0)
 		mail_sort_input(ctx, mail);
 
-	mail_free(mail);
-	mail_free(ctx->other_mail);
-
 	mail_sort_flush(ctx);
 	ret = mailbox_search_deinit(ctx->search_ctx);
 
+	mail_free(mail);
+	mail_free(ctx->other_mail);
+
 	if (mailbox_transaction_commit(ctx->t, 0) < 0)
 		ret = -1;
 



More information about the dovecot-cvs mailing list