From a24edac5a952333aa34d7e057325798ea1571ca3 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Fri, 4 Jun 2021 11:00:09 +0200 Subject: [PATCH] clang-tidy: muted "use of memory after it is freed" in MemoryPool --- src/ArduinoJson/Memory/MemoryPool.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ArduinoJson/Memory/MemoryPool.hpp b/src/ArduinoJson/Memory/MemoryPool.hpp index 49debf85..c8262186 100644 --- a/src/ArduinoJson/Memory/MemoryPool.hpp +++ b/src/ArduinoJson/Memory/MemoryPool.hpp @@ -37,7 +37,8 @@ class MemoryPool { } void* buffer() { - return _begin; + return _begin; // NOLINT(clang-analyzer-unix.Malloc) + // movePointers() alters this pointer } // Gets the capacity of the memoryPool in bytes