Commit 150dab31 authored by Li Huafei's avatar Li Huafei Committed by Namhyung Kim
Browse files

perf disasm: Fix not cleaning up disasm_line in symbol__disassemble_raw()



In symbol__disassemble_raw(), the created disasm_line should be
discarded before returning an error. When creating disasm_line fails,
break the loop and then release the created lines.

Fixes: 0b971e6b ("perf annotate: Add support to capture and parse raw instruction in powerpc using dso__data_read_offset utility")
Signed-off-by: default avatarLi Huafei <lihuafei1@huawei.com>
Tested-by: default avatarAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: sesse@google.com
Cc: kjain@linux.ibm.com
Link: https://lore.kernel.org/r/20241019154157.282038-3-lihuafei1@huawei.com


Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent 908d50e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment