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

Fix potential memory leak in AtakPluginModule #5803

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

esev
Copy link
Contributor

@esev esev commented Jan 9, 2025

Moving the allocation for decompressedCopy closer to where it is used. There are a few returns on error in this method that could be called without decompressedCopy being released first. Moving it toward the end of the method avoids any potential leaks.

@fifieldt fifieldt merged commit 1d756ae into meshtastic:master Jan 10, 2025
52 checks passed
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