dovecot-2.2: lib: test-istream-concat - clean up our test-istreams

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 10 11:11:26 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/e5028f632d1c
changeset: 17778:e5028f632d1c
user:      Phil Carmody <phil at dovecot.fi>
date:      Wed Sep 10 14:08:58 2014 +0300
description:
lib: test-istream-concat - clean up our test-istreams
This reduces noise when memory leak debugging the unit tests.

Signed-off-by: Phil Carmody <phil at dovecot.fi>

diffstat:

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

diffs (13 lines):

diff -r 647162da8423 -r e5028f632d1c src/lib/test-istream-concat.c
--- a/src/lib/test-istream-concat.c	Wed Sep 10 13:59:31 2014 +0300
+++ b/src/lib/test-istream-concat.c	Wed Sep 10 14:08:58 2014 +0300
@@ -47,6 +47,9 @@
 		}
 	}
 	i_stream_unref(&input);
+
+	for (i = 0; i < STREAM_COUNT; i++)
+		i_stream_unref(&streams[i]);
 }
 
 static bool test_istream_concat_random(void)


More information about the dovecot-cvs mailing list