dovecot-2.0: maildir storage: Don't keep memory pointing to mail...

dovecot at dovecot.org dovecot at dovecot.org
Thu Dec 24 00:07:55 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/f4b3e4366e3e
changeset: 10533:f4b3e4366e3e
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Dec 23 17:07:48 2009 -0500
description:
maildir storage: Don't keep memory pointing to mailbox list.
Storage is no longer directly related to mailbox list, and the list may be
freed.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/index/maildir/maildir-storage.c |    3 ++-

diffs (13 lines):

diff -r c3423cfc5244 -r f4b3e4366e3e src/lib-storage/index/maildir/maildir-storage.c
--- a/src/lib-storage/index/maildir/maildir-storage.c	Wed Dec 23 16:22:42 2009 -0500
+++ b/src/lib-storage/index/maildir/maildir-storage.c	Wed Dec 23 17:07:48 2009 -0500
@@ -115,7 +115,8 @@ maildir_storage_create(struct mail_stora
 	storage->set = mail_storage_get_driver_settings(_storage);
 
 	storage->maildir_list_ext_id = (uint32_t)-1;
-	storage->temp_prefix = mailbox_list_get_temp_prefix(list);
+	storage->temp_prefix = p_strdup(_storage->pool,
+					mailbox_list_get_temp_prefix(list));
 
 	if (list->set.control_dir == NULL && list->set.inbox_path == NULL &&
 	    (ns->flags & NAMESPACE_FLAG_INBOX) != 0) {


More information about the dovecot-cvs mailing list