From 9223b3c6cd95e6accf6fafe6c02fb66908a2fe33 Mon Sep 17 00:00:00 2001 From: Troy <5659019+troyhacks@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:34:30 -0500 Subject: [PATCH] Free BusNetwork _data on cleanup --- wled00/bus_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index b59610e0..1da74815 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -565,8 +565,8 @@ uint8_t BusNetwork::getPins(uint8_t* pinArray) const { void BusNetwork::cleanup() { _type = I_NONE; _valid = false; - // if (_data != nullptr) free(_data); - // _data = nullptr; + if (_data != nullptr) free(_data); + _data = nullptr; } // ***************************************************************************