Skip to content

Commit

Permalink
Ensure that CHIPDeviceControllerFactory calls FabricTable::Shutdown (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
msandstedt authored and pull[bot] committed Feb 2, 2024
1 parent b673d94 commit 1221428
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/CHIPDeviceControllerFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1221428

Please sign in to comment.