From acda22ae1bee6d2a6228c38d2de2adf1efcfdeba Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 14 Oct 2015 12:03:19 +0200 Subject: [PATCH] leak: free route at the end of the test --- src/move.test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/move.test.c b/src/move.test.c index 79544d998..5c24ca72e 100644 --- a/src/move.test.c +++ b/src/move.test.c @@ -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(); }