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

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

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

Postby jumjum123 » Wed Nov 23, 2016 10:58 am

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

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

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

Postby ESP_Angus » Wed Nov 23, 2016 9:17 pm

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.

Who is online

Users browsing this forum: Bing [Bot] and 402 guests