changeset 13556:415aa8e92203

sdbox: Memory leak fix.
author Timo Sirainen <tss@iki.fi>
date Mon, 26 Sep 2011 21:55:10 +0300
parents fe89e95867a4
children b020b9f7aa54
files src/lib-storage/index/dbox-single/sdbox-sync.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 		}