Landing: 037292b02f4c

Project / Subsystem

binutils / x86/disasm

Date

2026-05-22

Author

Jan Beulich <jbeulich@sourceware.org>

Commit

037292b02f4c48e80d1ab002cc589fe6c76e96ea

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
x86/disasm
patch_id
commit_hash
037292b02f4c48e80d1ab002cc589fe6c76e96ea
source_type
public_inbox
headline
X86/disasm: Avoid potential memory leak in annotation buffers
tldr
The x86 disassembler now frees annotation buffers correctly, preventing a potential memory leak.
author
Jan Beulich <jbeulich@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • disassembler
  • x86
  • memory leak
discussion_id_link
bugzilla_pr
date
2026-05-22T00:00:00.000Z

A potential memory leak in the x86 disassembler’s annotation logic was fixed by moving the free() call outside of a conditional block where it could be skipped. This ensures that the annotation buffer is always freed, preventing memory leaks during disassembly.