Prevent some memory leaks in unit tests.

This commit is contained in:
Vreixo Formoso
2008-01-12 17:32:44 +01:00
parent 25f4402147
commit 7e8a9b9473
2 changed files with 54 additions and 16 deletions

View File

@ -267,6 +267,8 @@ static void test_rrip_calc_len_symlink()
CU_ASSERT_EQUAL(ce_len, 252 + 255 + 9);
CU_ASSERT_EQUAL(sua_len, 44 + (5 + 74) + (5 + 3*7) + 1 + 28);
free(link);
free(node);
}
static
@ -712,6 +714,8 @@ static void test_rrip_get_susp_fields_symlink()
CU_ASSERT_EQUAL(entry[47], 0);
CU_ASSERT_EQUAL(entry[48], 10);
CU_ASSERT_NSTRING_EQUAL(entry + 49, "components", 10);
susp_info_free(&susp);
/* case 3. name fits, dest is one byte larger to fit */
/* 3.a extra byte in dest */