dovecot-2.2: quota-clone: Memory leak fix when mailbox had no qu...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 28 09:20:50 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/9b2be8702e59
changeset: 19232:9b2be8702e59
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 28 12:19:20 2015 +0300
description:
quota-clone: Memory leak fix when mailbox had no quota roots.

diffstat:

 src/plugins/quota-clone/quota-clone-plugin.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 30f4615efa10 -r 9b2be8702e59 src/plugins/quota-clone/quota-clone-plugin.c
--- a/src/plugins/quota-clone/quota-clone-plugin.c	Sun Sep 27 21:48:34 2015 +0300
+++ b/src/plugins/quota-clone/quota-clone-plugin.c	Mon Sep 28 12:19:20 2015 +0300
@@ -45,12 +45,12 @@
 	/* we'll clone the first quota root */
 	iter = quota_root_iter_init(box);
 	root = quota_root_iter_next(iter);
+	quota_root_iter_deinit(&iter);
 	if (root == NULL) {
 		/* no quota roots defined for this mailbox - ignore */
 		qbox->quota_changed = FALSE;
 		return;
 	}
-	quota_root_iter_deinit(&iter);
 
 	trans = dict_transaction_begin(quser->dict);
 	/* update bytes */


More information about the dovecot-cvs mailing list