connectedhomeip
connectedhomeip copied to clipboard
DeviceControllerFactory::InitSystemState leaks on errors
Problem
There's a lot of Platform::New
followed by ReturnErrorOnFailure
going on here.
Proposed Solution
Probably the DeviceControllerSystemStateParams
should hold Platform::UniquePtr
for a bunch of these things, but also cleaning them up properly involves Shutdown
calls and whatnot....
Also, none of the Platform::New
results are null-checked.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This stale issue has been automatically closed. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.