]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-istream-concat - clean up our test-istreams
authorPhil Carmody <phil@dovecot.fi>
Wed, 10 Sep 2014 11:08:58 +0000 (14:08 +0300)
committerPhil Carmody <phil@dovecot.fi>
Wed, 10 Sep 2014 11:08:58 +0000 (14:08 +0300)
This reduces noise when memory leak debugging the unit tests.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
src/lib/test-istream-concat.c

index 8f0d001ce4fbfde96bc97e52f90aa45fa5e5d78d..cf86f24cf3d532689ac7ed06fe1600bd66c58e1f 100644 (file)
@@ -47,6 +47,9 @@ static void test_istream_concat_one(unsigned int buffer_size)
                }
        }
        i_stream_unref(&input);
+
+       for (i = 0; i < STREAM_COUNT; i++)
+               i_stream_unref(&streams[i]);
 }
 
 static bool test_istream_concat_random(void)