HAL_ChibiOS: fixed use of chHeapFree

should be free
This commit is contained in:
Andrew Tridgell 2020-11-13 16:10:45 +11:00 committed by Peter Barker
parent ce3e1a69ec
commit 3f775205e6

View File

@ -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);
}
}