HAL_ChibiOS: fixed use of chHeapFree
should be free
This commit is contained in:
parent
ce3e1a69ec
commit
3f775205e6
@ -64,7 +64,7 @@ void* Util::malloc_type(size_t size, AP_HAL::Util::Memory_Type mem_type)
|
||||
void Util::free_type(void *ptr, size_t size, AP_HAL::Util::Memory_Type mem_type)
|
||||
{
|
||||
if (ptr != NULL) {
|
||||
chHeapFree(ptr);
|
||||
free(ptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user