Skip to content

Fix Python and Rust memory leaks - #8437

Open
plafosse wants to merge 1 commit into
devfrom
test_fix_memory_leaks
Open

Fix Python and Rust memory leaks#8437
plafosse wants to merge 1 commit into
devfrom
test_fix_memory_leaks

Conversation

@plafosse

Copy link
Copy Markdown
Member

Fixes the Python and Rust ownership issues reported in Vector35/binaryninja#1506. Ensures owned references and parse results are freed correctly on both success and failure paths.
Verified with Python compilation and Rust formatting/build checks.

@plafosse plafosse added this to the Krypton milestone Aug 19, 2026
@plafosse plafosse self-assigned this Aug 19, 2026
@zznop
zznop self-requested a review August 19, 2026 14:21

@zznop zznop left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Your changes look good. However, looks like the C++ CoreTypeParser::ParseTypeString still has a failure path that leaks apiResult: https://github.com/Vector35/binaryninja-api/blob/test_fix_memory_leaks/typeparser.cpp#L588

@plafosse
plafosse force-pushed the test_fix_memory_leaks branch from dedca95 to d891444 Compare August 19, 2026 15:18
@plafosse

Copy link
Copy Markdown
Member Author

Oh good check. Fixed.

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