[dovecot-cvs] dovecot/src/lib-index mail-transaction-log-view.c, 1.45, 1.45.2.1

tss at dovecot.org tss at dovecot.org
Sun Nov 12 11:13:18 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv11842

Modified Files:
      Tag: branch_1_0
	mail-transaction-log-view.c 
Log Message:
Memory/fd leak fix



Index: mail-transaction-log-view.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log-view.c,v
retrieving revision 1.45
retrieving revision 1.45.2.1
diff -u -d -r1.45 -r1.45.2.1
--- mail-transaction-log-view.c	14 Jan 2006 18:47:35 -0000	1.45
+++ mail-transaction-log-view.c	12 Nov 2006 11:13:15 -0000	1.45.2.1
@@ -188,12 +188,12 @@
 		/* unref old files */
 		for (file = view->tail; file != first; file = file->next)
 			file->refcount--;
-		view->tail = first;
 	} else {
 		/* going backwards, reference them */
 		for (file = first; file != view->tail; file = file->next)
 			file->refcount++;
 	}
+	view->tail = first;
 
 	/* reference all new files */
 	for (file = view->head->next; file != NULL; file = file->next)



More information about the dovecot-cvs mailing list