mirror of
https://github.com/esphome/esphome.git
synced 2026-09-01 10:36:01 +00:00
RAMAllocator is stateless when using default flags — it's just a dispatch wrapper over heap_caps_malloc/realloc/free. There's no need to store it as a class member. Use stack-local instances at each call site instead, matching the pattern used in audio_transfer_buffer and ring_buffer. Co-Authored-By: J. Nick Koston <nick@koston.org>