diff options
| author | Li Huafei <[email protected]> | 2024-10-19 15:41:55 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2024-10-23 22:35:38 +0000 |
| commit | b4e0e9a1e30059f4523c9b6a1f8045ad89b5db8a (patch) | |
| tree | 406588225ebeb6df091d103501654b14f29a25f5 /tools/perf/builtin-script.c | |
| parent | perf test: Add precise_max subtest to the perf record shell test (diff) | |
| download | kernel-b4e0e9a1e30059f4523c9b6a1f8045ad89b5db8a.tar.gz kernel-b4e0e9a1e30059f4523c9b6a1f8045ad89b5db8a.zip | |
perf disasm: Use disasm_line__free() to properly free disasm_line
The structure disasm_line contains members that require dynamically
allocated memory and need to be freed correctly using
disasm_line__free().
This patch fixes the incorrect release in
symbol__disassemble_capstone().
Fixes: 6d17edc113de ("perf annotate: Use libcapstone to disassemble")
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
