Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7035:0f4e8b995760 HEAD
Free filter_stream before mail stream so we don't crash.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 22 Dec 2007 06:04:00 +0200 |
parents | e527ac1a7b4b |
children | 1ed56d4064f5 |
files | src/lib-storage/index/index-mail.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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)