aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorLi Huafei <[email protected]>2024-10-19 15:41:57 +0000
committerNamhyung Kim <[email protected]>2024-10-23 22:36:14 +0000
commit150dab31d5609f896fbfaa06b442ca314da79858 (patch)
tree69bf086dc7aaf7789073374d0b17e92e621a5721 /tools/perf/builtin-script.c
parentperf disasm: Use disasm_line__free() to properly free disasm_line (diff)
downloadkernel-150dab31d5609f896fbfaa06b442ca314da79858.tar.gz
kernel-150dab31d5609f896fbfaa06b442ca314da79858.zip
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 <[email protected]> Tested-by: Athira Rajeev <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions