| 165 | } |
| 166 | |
| 167 | void 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 |
no test coverage detected