From 797d3608b64e6e08624807ddcb2f6484794cfcf6 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 18 Jun 2004 02:27:40 +0300 Subject: [PATCH] Don't leak mbox fd when closing mailbox --HG-- branch : HEAD --- src/lib-storage/index/mbox/mbox-storage.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib-storage/index/mbox/mbox-storage.c b/src/lib-storage/index/mbox/mbox-storage.c index 21a11de2e6..3b21dbfcdb 100644 --- a/src/lib-storage/index/mbox/mbox-storage.c +++ b/src/lib-storage/index/mbox/mbox-storage.c @@ -8,6 +8,7 @@ #include "subscription-file/subscription-file.h" #include "mbox-storage.h" #include "mbox-lock.h" +#include "mbox-file.h" #include "mail-save.h" #include @@ -788,6 +789,9 @@ static int mbox_get_mailbox_name_status(struct mail_storage *_storage, static int mbox_storage_close(struct mailbox *box) { + struct index_mailbox *ibox = (struct index_mailbox *)box; + + mbox_file_close(ibox); index_storage_mailbox_free(box); return 0; } -- 2.47.3