heap/test_leak: changed requested memory on leak checks to match the threshold

This commit is contained in:
Felipe Neves
2019-11-11 11:34:37 +08:00
parent c0d12988d3
commit cf95ea40d4
4 changed files with 13 additions and 9 deletions

View File

@@ -87,6 +87,10 @@ void setUp(void)
static void check_leak(size_t before_free, size_t after_free, const char *type)
{
printf("MALLOC_CAP_%s leak: Leak threshold is: %u \n",
type,
critical_leak_threshold);
if (before_free <= after_free) {
return;
}