Skip to content

Fix memory leaks in bin, type parser, core meta and debug#6594

Merged
notxvilka merged 1 commit into
devfrom
asan-leak-fixes
Jul 4, 2026
Merged

Fix memory leaks in bin, type parser, core meta and debug#6594
notxvilka merged 1 commit into
devfrom
asan-leak-fixes

Conversation

@notxvilka

Copy link
Copy Markdown
Contributor

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository.
  • I made sure to follow the project's coding style.
  • I've documented every RZ_API function and struct this PR changes.
  • I've added tests that prove my changes are effective (required for changes to RZ_API).
  • I've updated the Rizin book with the relevant information (if needed).
  • I've used AI tools to generate fully or partially these code changes and I'm sure the changes are not copyrighted by somebody else.

Detailed description

More leak fixes triggered in #6578

Test plan

CI is green

@codecov

codecov Bot commented Jul 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 49.93%. Comparing base (3c02fa5) to head (9b27d1d).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
librz/core/cmeta.c 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
librz/bin/format/mach0/mach0.c 57.86% <100.00%> (+0.04%) ⬆️
librz/bin/p/bin_mach0.inc 72.38% <100.00%> (+0.08%) ⬆️
librz/core/cmd/cmd_debug.c 27.67% <100.00%> (ø)
librz/type/parser/types_parser.c 50.00% <100.00%> (+0.15%) ⬆️
librz/core/cmeta.c 70.58% <75.00%> (+0.05%) ⬆️

... and 11 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c02fa5...9b27d1d. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@notxvilka
notxvilka merged commit 6f630b7 into dev Jul 4, 2026
54 of 55 checks passed
@notxvilka
notxvilka deleted the asan-leak-fixes branch July 4, 2026 18:56
Farhan-25 pushed a commit to Farhan-25/rizin that referenced this pull request Jul 15, 2026
)

Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants