Mercurial > dovecot > core-2.2
changeset 22056:81a4cf22408f
lib: Fix memory leak in test-istream-concat
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 19 May 2017 09:45:28 +0300 |
parents | 4ae88bb10a94 |
children | 5ea34f725a3a |
files | src/lib/test-istream-concat.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/test-istream-concat.c Thu May 18 22:18:15 2017 +0300 +++ b/src/lib/test-istream-concat.c Fri May 19 09:45:28 2017 +0300 @@ -127,6 +127,9 @@ 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);