From 3f775205e6b75f502e9828e91cd746ebad8c74c2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 13 Nov 2020 16:10:45 +1100 Subject: [PATCH] HAL_ChibiOS: fixed use of chHeapFree should be free --- libraries/AP_HAL_ChibiOS/Util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/Util.cpp b/libraries/AP_HAL_ChibiOS/Util.cpp index 3bf4431454..3ae709f9c1 100644 --- a/libraries/AP_HAL_ChibiOS/Util.cpp +++ b/libraries/AP_HAL_ChibiOS/Util.cpp @@ -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); } }