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

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


details:   http://hg.dovecot.org/dovecot-1.2/rev/47fa92207042
changeset: 8991:47fa92207042
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 1d21a3d0a295 -r 47fa92207042 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
@@ -290,7 +290,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