Skip to content
Snippets Groups Projects
Commit a7686d5d authored by Taylor Simpson's avatar Taylor Simpson
Browse files

Hexagon (disas/hexagon.c) fix memory leak for early exit cases


Don't allocate the string until error conditions have been checked

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

Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: default avatarPhilippe Mathieu-Daud? <f4bug@amsat.org>
Signed-off-by: default avatarTaylor Simpson <tsimpson@quicinc.com>
parent 703e8cd6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment