Browse Source

HAL_ChibiOS: fixed use of chHeapFree

should be free
zr-v5.1
Andrew Tridgell 4 years ago committed by Peter Barker
parent
commit
3f775205e6
  1. 2
      libraries/AP_HAL_ChibiOS/Util.cpp

2
libraries/AP_HAL_ChibiOS/Util.cpp

@ -64,7 +64,7 @@ void* Util::malloc_type(size_t size, AP_HAL::Util::Memory_Type mem_type) @@ -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…
Cancel
Save