leak: free route at the end of the test

This commit is contained in:
Enno Rehling 2015-10-14 12:03:19 +02:00
parent 3cfb22876b
commit acda22ae1b
1 changed files with 2 additions and 0 deletions

View File

@ -269,6 +269,7 @@ static void test_ship_trails(CuTest *tc) {
CuAssertPtrEquals(tc, 0, a_find(r1->attribs, &at_shiptrail));
CuAssertPtrNotNull(tc, a_find(r2->attribs, &at_shiptrail));
CuAssertPtrNotNull(tc, a_find(r3->attribs, &at_shiptrail));
free_regionlist(route);
test_cleanup();
}
@ -290,6 +291,7 @@ static void test_age_trails(CuTest *tc) {
CuAssertPtrNotNull(tc, r1->attribs);
a_age(&r1->attribs);
CuAssertPtrEquals(tc, 0, r1->attribs);
free_regionlist(route);
test_cleanup();
}