Mercurial > dovecot > original-hg > dovecot-2.1
changeset 14905:dd0eebe378fe
mdbox: mailbox_copy() didn't properly free the save context.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 16 Feb 2013 13:32:57 +0200 |
parents | 2def25f07ca6 |
children | 1713ffc870c1 |
files | src/lib-storage/index/dbox-multi/mdbox-save.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-multi/mdbox-save.c Fri Feb 08 16:42:21 2013 +0200 +++ b/src/lib-storage/index/dbox-multi/mdbox-save.c Sat Feb 16 13:32:57 2013 +0200 @@ -426,8 +426,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); @@ -462,5 +464,6 @@ if (_ctx->dest_mail != NULL) mail_set_seq_saving(_ctx->dest_mail, ctx->ctx.seq); + index_save_context_free(_ctx); return 0; }