dovecot: Memory and fd leak fix

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 28 22:35:05 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/f17d4bccd74d
changeset: 5827:f17d4bccd74d
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 28 22:34:50 2007 +0300
description:
Memory and fd leak fix

diffstat:

1 file changed, 4 insertions(+)
src/lib-index/mail-index.c |    4 ++++

diffs (14 lines):

diff -r 0bf4ade47ce9 -r f17d4bccd74d src/lib-index/mail-index.c
--- a/src/lib-index/mail-index.c	Thu Jun 28 20:13:12 2007 +0300
+++ b/src/lib-index/mail-index.c	Thu Jun 28 22:34:50 2007 +0300
@@ -530,6 +530,10 @@ static void mail_index_close_file(struct
 
 void mail_index_close(struct mail_index *index)
 {
+	if (index->map != NULL)
+		mail_index_unmap(index, &index->map);
+
+	mail_index_close_file(index);
 	mail_transaction_log_close(index->log);
 	if (index->cache != NULL)
 		mail_cache_free(&index->cache);


More information about the dovecot-cvs mailing list