dovecot-2.1: sdbox: Memory leak fix.

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 26 21:48:27 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/415aa8e92203
changeset: 13556:415aa8e92203
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 fe89e95867a4 -r 415aa8e92203 src/lib-storage/index/dbox-single/sdbox-sync.c
--- a/src/lib-storage/index/dbox-single/sdbox-sync.c	Mon Sep 26 15:36:21 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