dovecot-2.2: mdbox: mailbox_copy() didn't properly free the save...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 16 13:38:25 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/2cf0049a8e75
changeset: 15773:2cf0049a8e75
user: Timo Sirainen <tss at iki.fi>
date: Sat Feb 16 13:32:57 2013 +0200
description:
mdbox: mailbox_copy() didn't properly free the save context.
diffstat:
src/lib-storage/index/dbox-multi/mdbox-save.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 360661d99c42 -r 2cf0049a8e75 src/lib-storage/index/dbox-multi/mdbox-save.c
--- a/src/lib-storage/index/dbox-multi/mdbox-save.c Sat Feb 16 13:31:37 2013 +0200
+++ b/src/lib-storage/index/dbox-multi/mdbox-save.c Sat Feb 16 13:32:57 2013 +0200
@@ -425,8 +425,10 @@
memset(&rec, 0, sizeof(rec));
rec.save_date = ioloop_time;
if (mdbox_mail_lookup(src_mbox, mail->transaction->view, mail->seq,
- &rec.map_uid) < 0)
+ &rec.map_uid) < 0) {
+ index_save_context_free(_ctx);
return -1;
+ }
mail_index_lookup_ext(mail->transaction->view, mail->seq,
src_mbox->guid_ext_id, &guid_data, &expunged);
@@ -461,5 +463,6 @@
if (_ctx->dest_mail != NULL)
mail_set_seq_saving(_ctx->dest_mail, ctx->ctx.seq);
+ index_save_context_free(_ctx);
return 0;
}
More information about the dovecot-cvs
mailing list