--- a/test/utils_tests.c Fri Aug 16 13:40:10 2013 +0200 +++ b/test/utils_tests.c Fri Aug 16 14:48:58 2013 +0200 @@ -46,7 +46,7 @@ UCX_TEST_ASSERT(!strcmp(b1->space, "Hello World\nend.\n"), "wrong content in b1 after second fprintf"); - ucx_fprintf(b2, (write_func)ucx_buffer_write, "%s%s", teststr1, teststr2); + ucx_bprintf(b2, "%s%s", teststr1, teststr2); UCX_TEST_ASSERT(b2->pos == 2046, "wrong length"); UCX_TEST_ASSERT(!memcmp(b2->space, teststr1, 1023), "wrong first half in b2"); @@ -57,6 +57,8 @@ ucx_buffer_free(b1); ucx_buffer_free(b2); + free(teststr1); + free(teststr2); } UCX_TEST(test_ucx_asprintf) { @@ -84,4 +86,7 @@ free(s2.ptr); UCX_TEST_END + + free(teststr1); + free(teststr2); }