From: Timo Sirainen Date: Thu, 17 Jun 2004 23:27:40 +0000 (+0300) Subject: Don't leak mbox fd when closing mailbox X-Git-Tag: 1.1.alpha1~3950 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=797d3608b64e6e08624807ddcb2f6484794cfcf6;p=thirdparty%2Fdovecot%2Fcore.git Don't leak mbox fd when closing mailbox --HG-- branch : HEAD --- 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; }