From a57edc9ac9bfac7d3424d475f4b732bc6a4a1e11 Mon Sep 17 00:00:00 2001 From: Michael Sandstedt Date: Wed, 28 Sep 2022 21:01:03 -0500 Subject: [PATCH] Ensure that CHIPDeviceControllerFactory calls FabricTable::Shutdown (#22932) DeviceControllerFactory::InitSystemState initializes the FabricTable when it allocates it, but DeviceControllerSystemState::Shutdown does not symmetrically shut it down before deletion, and it should. This commit adds the missing Shutdown call. --- src/controller/CHIPDeviceControllerFactory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controller/CHIPDeviceControllerFactory.cpp b/src/controller/CHIPDeviceControllerFactory.cpp index 45ab785e508640..84a7c4388525bd 100644 --- a/src/controller/CHIPDeviceControllerFactory.cpp +++ b/src/controller/CHIPDeviceControllerFactory.cpp @@ -463,6 +463,7 @@ void DeviceControllerSystemState::Shutdown() if (mTempFabricTable != nullptr) { + mTempFabricTable->Shutdown(); chip::Platform::Delete(mTempFabricTable); mTempFabricTable = nullptr; // if we created a temp fabric table, then mFabrics points to it.