forked from github/server
leaks: call cleanup, free triggers
This commit is contained in:
parent
0f32630590
commit
144aeb23ac
2 changed files with 2 additions and 0 deletions
|
@ -178,6 +178,7 @@ void test_change_resource(CuTest * tc)
|
|||
CuAssertIntEquals(tc, have + 1, change_resource(u, rtype, 1));
|
||||
CuAssertIntEquals(tc, have + 1, get_resource(u, rtype));
|
||||
}
|
||||
test_cleanup();
|
||||
}
|
||||
|
||||
CuSuite *get_pool_suite(void)
|
||||
|
|
|
@ -94,6 +94,7 @@ void free_triggers(trigger * triggers)
|
|||
trigger *t = triggers;
|
||||
triggers = t->next;
|
||||
t_free(t);
|
||||
free(t);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue