aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorNelson Chu <nelson@rivosinc.com>2025-03-13 10:31:35 +0800
committerNelson Chu <nelson@rivosinc.com>2025-03-18 12:15:11 +0800
commit433ccc440b51673ed3fce85a8dedca24f16ccab2 (patch)
tree119a85a613c8eb377472acbc39d86251553dfe14 /gdb/python
parent921d65b3f0751b714f9859496946e9560001b18f (diff)
downloadbinutils-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/python')
0 files changed, 0 insertions, 0 deletions