-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for duplicate status callbacks before adding to the list #14497
Conversation
Duplicate status callbacks don't bring any value and can cause memory leaks if caller calls for this function multiple times with same status_cb. Also remove all the instances of the status_cb when removing event listener.
@jarlamsa, thank you for your changes. |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there need for the flagging?
At least the |
CI issue, see #14529 (comment) |
@0xc0170 can be get this merged? Anything blocking this from next release? |
@0xc0170 Is this going to get in sometime soon? This has been waiting over month already. |
The CI issue was solved long ago. Rerunning CI on this should be enough. @0xc0170 |
CI restarted |
Jenkins CI Test : ❌ FAILEDBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Restarted, hw fault |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 3 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Old hook cmake-example-test that was removed, it can be ignored. I'll merge this now. |
Summary of changes
Duplicate status callbacks don't bring any value and can cause
memory leaks if caller calls for this function multiple times with
same status_cb. Also remove all the instances of the status_cb when
removing event listener.
Documentation
None
Pull request type
Test results
Reviewers
@ARMmbed/mbed-os-connectivity