MCPcopy Create free account
hub / github.com/FastLED/FastLED / Free

Function Free

src/fl/stl/allocator.cpp.hpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void Free(void *ptr) {
168#if defined(FASTLED_TESTING)
169 if (gMallocFreeHook && ptr) {
170 MemoryGuard allows_hook;
171 if (allows_hook.enabled()) {
172 gMallocFreeHook->onFree(ptr);
173 }
174 }
175#endif
176
177 Dealloc(ptr);
178}
179
180#ifdef FL_IS_ESP32
181// ESP32-specific memory allocation for RMT buffer pooling

Callers 14

onQueuingDoneMethod · 0.85
deallocateMethod · 0.85
deallocateFunction · 0.85
deallocateMethod · 0.85
~SlabMethod · 0.85
createSlabMethod · 0.85
deallocateMethod · 0.85
SlabAllocatorClass · 0.85
do_deallocateMethod · 0.85
~LUTMethod · 0.85
deallocateMethod · 0.85
FL_TEST_FILEFunction · 0.85

Calls 2

enabledMethod · 0.80
onFreeMethod · 0.45

Tested by

no test coverage detected