diff --git a/components/freertos/test/test_malloc.c b/components/freertos/test/test_malloc.c index d7f1464508..7bcc291e30 100644 --- a/components/freertos/test/test_malloc.c +++ b/components/freertos/test/test_malloc.c @@ -1,5 +1,5 @@ /* - Test for multicore FreeRTOS. This test spins up threads, fiddles with queues etc. + Generic test for malloc/free */ #include @@ -17,33 +17,33 @@ #include "soc/io_mux_reg.h" static int tryAllocMem() { - int **mem; - int i, noAllocated, j; - mem=malloc(sizeof(int)*1024); - if (!mem) return 0; - for (i=0; i<1024; i++) { - mem[i]=malloc(1024); - if (mem[i]==NULL) break; - for (j=0; j<1024/4; j++) mem[i][j]=(0xdeadbeef); - } - noAllocated=i; - for (i=0; i