Page 1 of 1

include malloc.h missing in rmt.c (?)

Posted: Wed Nov 23, 2016 10:58 am
by jumjum123
Downloaded actual version from github.
Ran menuconfig
Ran make and got

Code: Select all

/home/esp32/esp-idf/components/driver/./rmt.c: In function 'rmt_driver_uninstall':
/home/esp32/esp-idf/components/driver/./rmt.c:616:5: error: implicit declaration of function 'free' [-Werror=implicit-function-declaration]
     free(p_rmt_obj[channel]);
Added #include "malloc.h" and it compiles fine

Re: include malloc.h missing in rmt.c (?)

Posted: Wed Nov 23, 2016 9:17 pm
by ESP_Angus
Thanks for reporting this bug. stdlib.h (which brings in malloc) is included as part of the FreeRTOConfig for some configurations (abort on untested function) but not others. A fix is on its way.