Skip to content

Commit 57c7321

Browse files
authored
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.
1 parent e982c3a commit 57c7321

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/controller/CHIPDeviceControllerFactory.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ void DeviceControllerSystemState::Shutdown()
463463

464464
if (mTempFabricTable != nullptr)
465465
{
466+
mTempFabricTable->Shutdown();
466467
chip::Platform::Delete(mTempFabricTable);
467468
mTempFabricTable = nullptr;
468469
// if we created a temp fabric table, then mFabrics points to it.

0 commit comments

Comments
 (0)