dovecot-2.2: istream-seekable: When read() reaches EOF, unrefere...

dovecot at dovecot.org dovecot at dovecot.org
Tue Oct 23 20:16:21 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/d5706259963b
changeset: 15236:d5706259963b
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Oct 23 20:09:35 2012 +0300
description:
istream-seekable: When read() reaches EOF, unreference underlying streams.
This was already done when the stream was kept in memory, but not when when
the stream was written to temporary file.

diffstat:

 src/lib/istream-seekable.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 3e70eacf67a4 -r d5706259963b src/lib/istream-seekable.c
--- a/src/lib/istream-seekable.c	Tue Oct 23 20:07:06 2012 +0300
+++ b/src/lib/istream-seekable.c	Tue Oct 23 20:09:35 2012 +0300
@@ -153,6 +153,7 @@
 			/* last one, EOF */
 			sstream->size = sstream->istream.istream.v_offset;
 			sstream->istream.istream.eof = TRUE;
+			unref_streams(sstream);
 			return -1;
 		}
 


More information about the dovecot-cvs mailing list