qemu-e2k/disas
Taylor Simpson a7686d5d85 Hexagon (disas/hexagon.c) fix memory leak for early exit cases
Don't allocate the string until error conditions have been checked

Fixes: a00cfed0e ("Hexagon (disas) disassembler")
Eliminate Coverity CID 1460121 (Resource leak)

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daud? <f4bug@amsat.org>
Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
2021-08-12 09:06:05 -05:00
..
libvixl disas/libvixl: Protect C system header for C++ compiler 2021-05-25 16:01:43 +01:00
alpha.c
arm-a64.cc include/disas/dis-asm.h: Handle being included outside 'extern "C"' 2021-05-10 17:21:54 +01:00
arm.c
capstone.c disas: Push const down through host disassembly 2021-01-07 05:09:42 -10:00
cris.c cris: do not leak struct cris_disasm_data 2019-10-04 18:49:17 +02:00
hexagon.c Hexagon (disas/hexagon.c) fix memory leak for early exit cases 2021-08-12 09:06:05 -05:00
hppa.c disas/: fix some comment spelling errors 2020-09-17 20:40:08 +02:00
i386.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
m68k.c disas/: fix some comment spelling errors 2020-09-17 20:40:08 +02:00
meson.build Drop the deprecated lm32 target 2021-05-12 18:20:25 +02:00
microblaze.c
mips.c target/mips: Add implementation of GINVT instruction 2020-01-29 19:28:52 +01:00
nanomips.cpp include/disas/dis-asm.h: Handle being included outside 'extern "C"' 2021-05-10 17:21:54 +01:00
nanomips.h Clean up header guards that don't match their file name 2019-05-13 08:58:55 +02:00
nios2.c
ppc.c disas/: fix some comment spelling errors 2020-09-17 20:40:08 +02:00
riscv.c disas/riscv: Fix rdinstreth constraint 2019-06-27 02:47:04 -07:00
s390.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
sh4.c disas/sh4: Add missing fallthrough annotations 2020-07-13 11:40:52 +02:00
sparc.c
xtensa.c