Skip to content

Commit

Permalink
lib: Fix memory leak in test-istream-concat
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed May 19, 2017
1 parent 17aeaee commit cb4d75e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/test-istream-concat.c
Expand Up @@ -127,6 +127,9 @@ static void test_istream_concat_seek_end(void)
NULL
};
struct istream *input = i_stream_create_concat(streams);
i_stream_unref(&streams[0]);
i_stream_unref(&streams[1]);

i_stream_seek(input, 4);
test_assert(i_stream_read(input) == -1);
i_stream_unref(&input);
Expand Down

0 comments on commit cb4d75e

Please sign in to comment.