dovecot-2.2: lib: Fixed reference counting in iostream-rawlog if...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 23 10:03:25 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/c3acdfc64a0b
changeset: 18450:c3acdfc64a0b
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 23 13:01:50 2015 +0300
description:
lib: Fixed reference counting in iostream-rawlog if either i/ostream wasn't used.
diffstat:
src/lib/iostream-rawlog.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (11 lines):
diff -r 49dd781d8f26 -r c3acdfc64a0b src/lib/iostream-rawlog.c
--- a/src/lib/iostream-rawlog.c Thu Apr 23 11:40:03 2015 +0300
+++ b/src/lib/iostream-rawlog.c Thu Apr 23 13:01:50 2015 +0300
@@ -297,5 +297,6 @@
rawlog_output, rawlog_flags);
o_stream_unref(&old_output);
}
- o_stream_ref(rawlog_output);
+ if (input != NULL && output != NULL)
+ o_stream_ref(rawlog_output);
}
More information about the dovecot-cvs
mailing list