From c615bd9874a0bca69c4973e61e0769cd95bc0ca1 Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Mon, 16 Mar 2020 18:21:16 +1100 Subject: [PATCH] AP_HAL: implement standard realloc method --- libraries/AP_HAL/Util.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL/Util.h b/libraries/AP_HAL/Util.h index 9a35f2e6cb..ac4868da99 100644 --- a/libraries/AP_HAL/Util.h +++ b/libraries/AP_HAL/Util.h @@ -159,8 +159,10 @@ public: // heap functions, note that a heap once alloc'd cannot be dealloc'd virtual void *allocate_heap_memory(size_t size) = 0; virtual void *heap_realloc(void *heap, void *ptr, size_t new_size) = 0; + virtual void *std_realloc(void *ptr, size_t new_size) { return realloc(ptr, new_size); } #endif // ENABLE_HEAP + /** how much free memory do we have in bytes. If unknown return 4096 */