From 5c8a68e1dee9736a1c22a5945394ceb2789cda07 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 13 Oct 2015 16:05:32 +0200 Subject: [PATCH] always call seen_done to eliminate memory leaks in tests. --- src/seen.test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/seen.test.c b/src/seen.test.c index fb6a42517..504d79ada 100644 --- a/src/seen.test.c +++ b/src/seen.test.c @@ -108,6 +108,7 @@ static void test_seen_travelthru(CuTest *tc) { sr = find_seen(f->seen, r); CuAssertPtrEquals(tc, r, sr->r); CuAssertIntEquals(tc, see_travel, sr->mode); + seen_done(f->seen); test_cleanup(); } @@ -141,6 +142,7 @@ static void test_seen_interval_backward(CuTest *tc) { get_seen_interval(seen, &first, &last); CuAssertPtrEquals(tc, regions, first); CuAssertPtrEquals(tc, 0, last); + seen_done(seen); test_cleanup(); } @@ -159,6 +161,7 @@ static void test_seen_interval_forward(CuTest *tc) { get_seen_interval(seen, &first, &last); CuAssertPtrEquals(tc, regions, first); CuAssertPtrEquals(tc, 0, last); + seen_done(seen); test_cleanup(); }