Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FabricTable memoryleak in DeviceControllerSystemState (#14658)
FabricTable is instantiated in DeviceControllerFactory::InitSystemState as shown below ``` stateParams.fabricTable = chip::Platform::New<FabricTable>(); ``` stateParams (type: DeviceControllerSystemStateParams) is then passed onto DeviceControllerFactory::mSystemState (type: DeviceControllerSystemState), where stateParams.fabricTable is now stored in mSystemState.mFabrics. We need to ensure that the original memory allocated in the initial step is now freed in DeviceControllerSystemState::Shutdown()
- Loading branch information