Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/index/dbox/dbox-storage.c @ 4203:4141aae720fe HEAD
Fixed memory leaks
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 20 Apr 2006 17:08:28 +0300 |
parents | 6ac0d63b297f |
children | 7e8bd7301461 |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox/dbox-storage.c Tue Apr 18 21:17:47 2006 +0300 +++ b/src/lib-storage/index/dbox/dbox-storage.c Thu Apr 20 17:08:28 2006 +0300 @@ -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; }