Set allocations free

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
JoVM
Posts: 89
Joined: Thu Mar 12, 2015 12:13 pm

Set allocations free

Post by JoVM »

Is it bad to use malloc and chHeapAlloc in an application? Would freeing allocations be a problem?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Set allocations free

Post by Giovanni »

It is possible if the C runtime feeds its internal allocator using the ChibiOS "Core Allocator". This is how syscalls.c does it usually.

Giovanni
Post Reply