Skip to content

Commit a24edac

Browse files
committed
clang-tidy: muted "use of memory after it is freed" in MemoryPool
1 parent 9dbf443 commit a24edac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ArduinoJson/Memory/MemoryPool.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ class MemoryPool {
3737
}
3838

3939
void* buffer() {
40-
return _begin;
40+
return _begin; // NOLINT(clang-analyzer-unix.Malloc)
41+
// movePointers() alters this pointer
4142
}
4243

4344
// Gets the capacity of the memoryPool in bytes

0 commit comments

Comments
 (0)