forked from github/server
always call seen_done to eliminate memory leaks in tests.
This commit is contained in:
parent
8ba8d7408d
commit
5c8a68e1de
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue