[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-storage.c, 1.14, 1.15

cras at dovecot.org cras at dovecot.org
Thu Apr 20 17:08:30 EEST 2006


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

Modified Files:
	dbox-storage.c 
Log Message:
Fixed memory leaks



Index: dbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-storage.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- dbox-storage.c	14 Apr 2006 12:30:23 -0000	1.14
+++ dbox-storage.c	20 Apr 2006 14:08:28 -0000	1.15
@@ -9,6 +9,7 @@
 #include "index-mail.h"
 #include "dbox-uidlist.h"
 #include "dbox-sync.h"
+#include "dbox-file.h"
 #include "dbox-storage.h"
 
 #include <stdio.h>
@@ -615,6 +616,11 @@
 
 static int dbox_storage_close(struct mailbox *box)
 {
+	struct dbox_mailbox *mbox = (struct dbox_mailbox *)box;
+
+	dbox_uidlist_deinit(mbox->uidlist);
+	if (mbox->file != NULL)
+		dbox_file_close(mbox->file);
         index_storage_mailbox_free(box);
 	return 0;
 }



More information about the dovecot-cvs mailing list