]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3-migration: Fixed memory leak in unit test.
authorTimo Sirainen <tss@iki.fi>
Mon, 16 Nov 2015 12:47:18 +0000 (14:47 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 16 Nov 2015 12:47:18 +0000 (14:47 +0200)
src/plugins/pop3-migration/test-pop3-migration-plugin.c

index c7c6a93ca40793f695e6e495006d818e205c7813..8cc8ab0fb23dc585aaddd7c917f0be48eb846973 100644 (file)
@@ -35,6 +35,7 @@ static void test_pop3_migration_get_hdr_sha1(void)
                                                            digest, &have_eoh) == 0, i);
                test_assert_idx(strcasecmp(binary_to_hex(digest, sizeof(digest)), tests[i].sha1) == 0, i);
                test_assert_idx(tests[i].have_eoh == have_eoh, i);
+               i_stream_unref(&input);
        }
 
        test_end();