dovecot-2.0: sdbox: Memory leak fix.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 26 21:46:52 EEST 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/3d1b4d0b5880
changeset: 12940:3d1b4d0b5880
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 26 21:55:10 2011 +0300
description:
sdbox: Memory leak fix.
diffstat:
src/lib-storage/index/dbox-single/sdbox-sync.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r 1fd2494465ba -r 3d1b4d0b5880 src/lib-storage/index/dbox-single/sdbox-sync.c
--- a/src/lib-storage/index/dbox-single/sdbox-sync.c Mon Sep 26 21:50:52 2011 +0300
+++ b/src/lib-storage/index/dbox-single/sdbox-sync.c Mon Sep 26 21:55:10 2011 +0300
@@ -194,6 +194,7 @@
if (ret <= 0) {
if (ret < 0)
mail_storage_set_index_error(&mbox->box);
+ array_free(&ctx->expunged_uids);
i_free(ctx);
*ctx_r = NULL;
return ret;
@@ -225,6 +226,7 @@
}
mail_index_sync_rollback(&ctx->index_sync_ctx);
if (ret < 0) {
+ array_free(&ctx->expunged_uids);
i_free(ctx);
return -1;
}
More information about the dovecot-cvs
mailing list