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

mavlink: delete Mavlink instance if early startup fails #19534

Merged
merged 1 commit into from
Apr 25, 2022

Conversation

dagar
Copy link
Member

@dagar dagar commented Apr 25, 2022

Small bug discovered during #19529. If there's an error in Mavlink::task_main() and it exits early the mavlink instance isn't deleted.

The entire mavlink module lifecycle management could use a bit of an overhaul, but this should be an acceptable short term fix for v1.13.

@dagar dagar added the bug label Apr 25, 2022
@dagar dagar force-pushed the pr-mavlink_fix_leak_on_startup_error branch from 74e27a7 to 4d84416 Compare April 25, 2022 15:44
@dagar dagar merged commit 89374b2 into master Apr 25, 2022
@dagar dagar deleted the pr-mavlink_fix_leak_on_startup_error branch April 25, 2022 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant