Skip to content

mavgen_python: Check reset buffer logic even if a message is generated#131

Merged
peterbarker merged 1 commit into
ArduPilot:masterfrom
SamuelDudley:memory_leak_fix
Feb 23, 2026
Merged

mavgen_python: Check reset buffer logic even if a message is generated#131
peterbarker merged 1 commit into
ArduPilot:masterfrom
SamuelDudley:memory_leak_fix

Conversation

@SamuelDudley

Copy link
Copy Markdown
Contributor

fixes #130

@SamuelDudley

Copy link
Copy Markdown
Contributor Author

Any feedback on this fix would be greatly appreciated.
Thanks again!

@amilcarlucas

Copy link
Copy Markdown
Contributor

I have an application that runs 24/7 so I'll test this one.

@SamuelDudley

SamuelDudley commented Nov 2, 2018 via email

Copy link
Copy Markdown
Contributor Author

@amilcarlucas

Copy link
Copy Markdown
Contributor

I do have a cable based TCP connection :(

@Domattee

Copy link
Copy Markdown

The issue this PR addresses is still present in current versions of pymavlink, and the proposed fix does seem to address it.
We have an application that accumulates about ~200MB per hour otherwise.

@peterbarker peterbarker force-pushed the memory_leak_fix branch 2 times, most recently from 12cb8c0 to d6b2763 Compare February 19, 2026 00:23
@peterbarker

Copy link
Copy Markdown
Contributor

I have rebased this change and force-pushed.

Will merge after a bit of testing.

@peterbarker peterbarker merged commit 2aadcaf into ArduPilot:master Feb 23, 2026
23 checks passed
@peterbarker

Copy link
Copy Markdown
Contributor

Merged it. Thanks @SamuelDudley - it did take us a while!

@SamuelDudley

SamuelDudley commented Feb 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @peterbarker for carrying this over the line... I have a lot less hair than when I submitted this PR 🤣

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.

Memory leak in generated dialect code

5 participants