]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Fixed memory leak in ostream-file unit test
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 18 May 2016 19:51:31 +0000 (22:51 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 18 May 2016 19:51:31 +0000 (22:51 +0300)
src/lib/test-ostream-file.c

index 96af39b6d696ddbe8edaf3976a3981e0c0f9ce20..d7573063fba74e6b68a65c928bb630e05a21a9e6 100644 (file)
@@ -163,6 +163,7 @@ static void test_ostream_file_send_istream_sendfile(void)
        test_assert(read(sock_fd[1], buf, sizeof(buf)) == 4 &&
                    memcmp(buf, "defg", 4) == 0);
        i_stream_unref(&input2);
+       i_stream_unref(&input);
 
        o_stream_destroy(&output);
        i_close_fd(&sock_fd[1]);