Skip to content

Commit 3632585

Browse files
cecillebzbarsky-apple
authored andcommitted
Release commissionee device pool on exit (#16127)
* Release commissionee device pool on exit * Update src/controller/CHIPDeviceController.cpp Co-authored-by: Boris Zbarsky <[email protected]> Co-authored-by: Boris Zbarsky <[email protected]>
1 parent c2fd39d commit 3632585

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/controller/CHIPDeviceController.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,9 @@ CHIP_ERROR DeviceCommissioner::Shutdown()
705705
}
706706
#endif // CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY
707707

708+
// Release everything from the commissionee device pool here. DeviceController::Shutdown releases operational.
709+
mCommissioneeDevicePool.ReleaseAll();
710+
708711
DeviceController::Shutdown();
709712
return CHIP_NO_ERROR;
710713
}

0 commit comments

Comments
 (0)