Skip to content
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

MOZ-0: Fix memleak #40

Open
wants to merge 1 commit into
base: mbed-os-6.7.0-patched
Choose a base branch
from

Conversation

sune-ext-lyngby
Copy link

It looks like we have a memory leak if the event queue is full.
In that case, I haven't been able to find who should deallocate the
queue event object, so we that should probably happen here.

It looks like we have a memory leak if the event queue is full.
In that case, I haven't been able to find who should deallocate the
queue event object, so we that should probably happen here.
@sune-ext-lyngby
Copy link
Author

Untested; haven't even built tested it

Copy link

@MichaelRasmussn MichaelRasmussn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sune-ext-lyngby
Copy link
Author

After reading and re-reading, it looks like that the id will always be valid, and the if block introduced in 24e93e6 is dead code. Though a bit more eyes would be nice.

I think we should roll those if blocks of that changeset back instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants