diff options
author | Nelson Chu <nelson@rivosinc.com> | 2025-03-13 10:31:35 +0800 |
---|---|---|
committer | Nelson Chu <nelson@rivosinc.com> | 2025-03-18 12:15:11 +0800 |
commit | 433ccc440b51673ed3fce85a8dedca24f16ccab2 (patch) | |
tree | 119a85a613c8eb377472acbc39d86251553dfe14 /gdb/disasm.c | |
parent | 921d65b3f0751b714f9859496946e9560001b18f (diff) | |
download | binutils-433ccc440b51673ed3fce85a8dedca24f16ccab2.zip binutils-433ccc440b51673ed3fce85a8dedca24f16ccab2.tar.gz binutils-433ccc440b51673ed3fce85a8dedca24f16ccab2.tar.bz2 |
RISC-V: Free the returned string of riscv_arch_str if we call it multiple times
The string returned from riscv_arch_str is allocated by xmalloc, so once we
called it multiple times, we should keep the newest one for the output elf
architecture attribute, but free the remaining unused strings.
Diffstat (limited to 'gdb/disasm.c')
0 files changed, 0 insertions, 0 deletions