Skip to content

Fix memory leaks in the dmi command's module lookup#6598

Open
notxvilka wants to merge 1 commit into
devfrom
asan-leak-fixes
Open

Fix memory leaks in the dmi command's module lookup#6598
notxvilka wants to merge 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 leaks found in #6578

Test plan

CI is green

@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 71.42857% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.93%. Comparing base (6f630b7) to head (04eaaa5).
⚠️ Report is 8 commits behind head on dev.

Files with missing lines Patch % Lines
librz/core/cmd/cmd_debug.c 71.42% 1 Missing and 7 partials ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
librz/core/cmd/cmd_debug.c 28.15% <71.42%> (+0.47%) ⬆️

... and 8 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 6f630b7...04eaaa5. 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.

return UT64_MAX;
}

static RzDebugMap *debug_map_clone(RzDebugMap *m) {

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.

Please make it an API function.

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.

3 participants