Free stuff in biffer/read_file tests
This commit is contained in:
@@ -104,6 +104,7 @@ START_TEST (test_gbuf_printf_empty_string)
|
|||||||
rc = uc_gbuf_printf(buf, fmt);
|
rc = uc_gbuf_printf(buf, fmt);
|
||||||
fail_if(rc != 0);
|
fail_if(rc != 0);
|
||||||
fail_if(buf->used != 0);
|
fail_if(buf->used != 0);
|
||||||
|
uc_gbuf_unref(buf);
|
||||||
|
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ START_TEST (test_read_file_simple)
|
|||||||
fail_if(len != 5);
|
fail_if(len != 5);
|
||||||
fail_if(strlen(content) != 5);
|
fail_if(strlen(content) != 5);
|
||||||
fail_if(strcmp("hello", content) != 0);
|
fail_if(strcmp("hello", content) != 0);
|
||||||
|
free(content);
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
START_TEST (test_read_file_greater_than_max)
|
START_TEST (test_read_file_greater_than_max)
|
||||||
|
|||||||
Reference in New Issue
Block a user