dovecot-2.2: fts: dovecot-expunges.log wasn't closed at deinit

dovecot at dovecot.org dovecot at dovecot.org
Tue Sep 16 11:32:30 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/e82ad7f1c58f
changeset: 17815:e82ad7f1c58f
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Sep 16 14:32:20 2014 +0300
description:
fts: dovecot-expunges.log wasn't closed at deinit

diffstat:

 src/plugins/fts/fts-expunge-log.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 56b565986dd3 -r e82ad7f1c58f src/plugins/fts/fts-expunge-log.c
--- a/src/plugins/fts/fts-expunge-log.c	Tue Sep 16 14:03:52 2014 +0300
+++ b/src/plugins/fts/fts-expunge-log.c	Tue Sep 16 14:32:20 2014 +0300
@@ -78,6 +78,8 @@
 	struct fts_expunge_log *log = *_log;
 
 	*_log = NULL;
+	if (log->fd != -1)
+		i_close_fd(&log->fd);
 	i_free(log->path);
 	i_free(log);
 }


More information about the dovecot-cvs mailing list