dovecot: Free filter_stream before mail stream so we don't crash.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Dec 22 06:04:04 EET 2007
details: http://hg.dovecot.org/dovecot/rev/0f4e8b995760
changeset: 7035:0f4e8b995760
user: Timo Sirainen <tss at iki.fi>
date: Sat Dec 22 06:04:00 2007 +0200
description:
Free filter_stream before mail stream so we don't crash.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-storage/index/index-mail.c | 4 ++--
diffs (19 lines):
diff -r e527ac1a7b4b -r 0f4e8b995760 src/lib-storage/index/index-mail.c
--- a/src/lib-storage/index/index-mail.c Sat Dec 22 05:58:58 2007 +0200
+++ b/src/lib-storage/index/index-mail.c Sat Dec 22 06:04:00 2007 +0200
@@ -1034,13 +1034,13 @@ void index_mail_close(struct mail *_mail
if (mail->data.parser_ctx != NULL)
(void)message_parser_deinit(&mail->data.parser_ctx);
+ if (mail->data.filter_stream != NULL)
+ i_stream_unref(&mail->data.filter_stream);
if (mail->data.stream != NULL) {
mail->data.destroying_stream = TRUE;
i_stream_unref(&mail->data.stream);
i_assert(!mail->data.destroying_stream);
}
- if (mail->data.filter_stream != NULL)
- i_stream_unref(&mail->data.filter_stream);
}
static void index_mail_reset(struct index_mail *mail)
More information about the dovecot-cvs
mailing list