dovecot: fd leak fix

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 12 03:25:14 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/fc75386a57ab
changeset: 5956:fc75386a57ab
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 12 03:24:35 2007 +0300
description:
fd leak fix

diffstat:

1 file changed, 1 insertion(+)
src/lib-storage/index/maildir/maildir-uidlist.c |    1 +

diffs (11 lines):

diff -r ce960c33f663 -r fc75386a57ab src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Thu Jul 12 03:21:07 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Thu Jul 12 03:24:35 2007 +0300
@@ -924,6 +924,7 @@ static int maildir_uidlist_recreate(stru
 		ret = -1;
 	} else {
 		i_assert(file_size == (uoff_t)st.st_size);
+		maildir_uidlist_close(uidlist);
 		uidlist->fd = fd;
 		uidlist->fd_dev = st.st_dev;
 		uidlist->fd_ino = st.st_ino;


More information about the dovecot-cvs mailing list