-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix leak when shutting down a controller with pending session setups. (…
…#26070) When shutting down a controller, we just destroyed its pending session setups without notifying their consumers. This leaks, becase those consumers never get a "setup has failed" notification and hence can't clean up properly. A simple way to reproduce is to build darwin-framework-tool without ASAN enabled, then run: MallocStackLogging=YES leaks --atExit -- darwin-framework-tool onoff toggle 0xDEADBEEF 1 when no node with id 0xDEADBEEF is commissioned. The fix is to send notifications when tearing down the OperationalSessionSetup, if we have not notified yet.
- Loading branch information
1 parent
1c98a69
commit 7a92beb
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters