Remove check
This commit is contained in:
parent
05e347e80c
commit
336c838eb0
@ -103,22 +103,7 @@ void app_main(void)
|
|||||||
int status = secure_api_get_device_enrollment_status();
|
int status = secure_api_get_device_enrollment_status();
|
||||||
ESP_LOGI(TAG, "Current enrollment status: %d\n", status);
|
ESP_LOGI(TAG, "Current enrollment status: %d\n", status);
|
||||||
|
|
||||||
// Check for memory leaks
|
system_sleep(120);
|
||||||
size_t before = system_show_free_memory();
|
|
||||||
for (int i = 0; i < 1000; i++)
|
|
||||||
{
|
|
||||||
char *buff = calloc(5000, 1);
|
|
||||||
assert(storage_get_dev_name(buff) > 0);
|
|
||||||
assert(storage_get_root_ca(buff) > 0);
|
|
||||||
free(crypto_get_csr());
|
|
||||||
// secure_api_get_device_enrollment_status();
|
|
||||||
printf("%d\n", i);
|
|
||||||
free(buff);
|
|
||||||
}
|
|
||||||
size_t after = system_show_free_memory();
|
|
||||||
printf("RES before = %d / after = %d / diff = %d\n", before, after, before - after);
|
|
||||||
|
|
||||||
system_sleep(120);
|
|
||||||
|
|
||||||
reboot();
|
reboot();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user