dovecot-2.0: Virtual: If opening a virtual mailbox fails, don't ...

dovecot at dovecot.org dovecot at dovecot.org
Wed Apr 29 20:50:33 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/c26e1b2f32c0
changeset: 9170:c26e1b2f32c0
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Apr 29 13:50:19 2009 -0400
description:
Virtual: If opening a virtual mailbox fails, don't leak memory/timeouts.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/virtual/virtual-storage.c |    2 +-

diffs (12 lines):

diff -r 13698b875984 -r c26e1b2f32c0 src/plugins/virtual/virtual-storage.c
--- a/src/plugins/virtual/virtual-storage.c	Wed Apr 29 13:37:12 2009 -0400
+++ b/src/plugins/virtual/virtual-storage.c	Wed Apr 29 13:50:19 2009 -0400
@@ -289,7 +289,7 @@ virtual_open(struct virtual_storage *sto
 		     array_count(&storage->open_stack)-1, 1);
 	if (failed) {
 		virtual_config_free(mbox);
-		pool_unref(&pool);
+		index_storage_mailbox_close(&mbox->ibox.box);
 		return NULL;
 	}
 


More information about the dovecot-cvs mailing list