Skip to content

Free all flag metadata strings ##analysis - #26472

Merged
trufae merged 1 commit into
radareorg:masterfrom
0verflowme:codex/fix-flag-ownership
Aug 15, 2026
Merged

Free all flag metadata strings ##analysis#26472
trufae merged 1 commit into
radareorg:masterfrom
0verflowme:codex/fix-flag-ownership

Conversation

@0verflowme

@0verflowme 0verflowme commented Aug 15, 2026

Copy link
Copy Markdown
Member

Summary

Free the owned flag metadata type and alias strings when the metadata table is destroyed.

Root cause

The metadata destructor released comments and colors but omitted the other two heap-owned fields, leaking them when a flag store was freed.

Tests

  • Full make -j
  • Focused test_flags, including the new metadata lifecycle case
  • Focused test under AddressSanitizer; LeakSanitizer is unavailable on this macOS host
  • git diff --check

@0verflowme
0verflowme marked this pull request as ready for review August 15, 2026 05:06
@trufae
trufae merged commit 609df80 into radareorg:master Aug 15, 2026
52 checks passed
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