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 Jul 6, 2023
1 parent 14b4977 commit a57edc9
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 a57edc9

Please sign in to comment.