dovecot-2.2: fts: Free fts-parser on failures.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 17 07:46:50 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/8618c884170d
changeset: 17229:8618c884170d
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 17 09:45:55 2014 +0200
description:
fts: Free fts-parser on failures.
diffstat:
src/plugins/fts/fts-build-mail.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 195945490dc9 -r 8618c884170d src/plugins/fts/fts-build-mail.c
--- a/src/plugins/fts/fts-build-mail.c Wed Apr 16 18:19:57 2014 +0200
+++ b/src/plugins/fts/fts-build-mail.c Thu Apr 17 09:45:55 2014 +0200
@@ -352,8 +352,12 @@
body_added = TRUE;
}
}
- if (ret == 0 && ctx.body_parser != NULL)
- ret = fts_body_parser_finish(&ctx);
+ if (ctx.body_parser != NULL) {
+ if (ret == 0)
+ ret = fts_body_parser_finish(&ctx);
+ else
+ fts_parser_deinit(&ctx.body_parser);
+ }
if (ret == 0 && body_part && !skip_body && !body_added) {
/* make sure body is added even when it doesn't exist */
block.data = NULL; block.size = 0;
More information about the dovecot-cvs
mailing list