diff options
author | Li Huafei <lihuafei1@huawei.com> | 2024-10-19 23:41:57 +0800 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-10-23 15:36:14 -0700 |
commit | 150dab31d5609f896fbfaa06b442ca314da79858 (patch) | |
tree | 69bf086dc7aaf7789073374d0b17e92e621a5721 /tools/lib/subcmd/run-command.c | |
parent | 908d50e50ef91713ae94bc8988db87def6b6fec3 (diff) |
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: 0b971e6bf1c3 ("perf annotate: Add support to capture and parse raw instruction in powerpc using dso__data_read_offset utility")
Signed-off-by: Li Huafei <lihuafei1@huawei.com>
Tested-by: Athira 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: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/lib/subcmd/run-command.c')
0 files changed, 0 insertions, 0 deletions