mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-21 19:09:13 +00:00
heap/test_leak: changed requested memory on leak checks to match the threshold
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user