[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c, 1.131, 1.132

cras at dovecot.org cras at dovecot.org
Sat Dec 31 16:20:56 EET 2005


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv2085/mbox

Modified Files:
	mbox-storage.c 
Log Message:
In-memory indexes are kept also in index-storage's cache, so we need to free
them the normal way (probably changed this some time ago).



Index: mbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -d -r1.131 -r1.132
--- mbox-storage.c	31 Dec 2005 13:49:19 -0000	1.131
+++ mbox-storage.c	31 Dec 2005 14:20:54 -0000	1.132
@@ -960,7 +960,6 @@
 {
 	struct mbox_mailbox *mbox = (struct mbox_mailbox *)box;
 	const struct mail_index_header *hdr;
-	struct mail_index *free_index = NULL;
 	int ret = 0;
 
 	hdr = mail_index_get_header(mbox->ibox.view);
@@ -976,15 +975,9 @@
 	if (mbox->mbox_file_stream != NULL) {
 		i_stream_unref(mbox->mbox_file_stream);
 		mbox->mbox_file_stream = NULL;
-
-		/* it's not in storage's index cache, so free it manually */
-		free_index = mbox->ibox.index;
-		mbox->ibox.index = NULL;
 	}
 
 	index_storage_mailbox_free(box);
-	if (free_index != NULL)
-		mail_index_free(free_index);
 	return ret;
 }
 



More information about the dovecot-cvs mailing list