Hope cJSON can add support for other 'malloc()'
Closed this issue · 0 comments
king4399 commented
cJSON uses a lot of malloc(), however, using malloc() in MCU freeRTOS can make the system unsafe, and an option code needs to be added to allow users to use their own defined 'malloc()'.
For example, in freeRTOS, simply replace "malloc()" with "pvPortMalloc()"