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

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: 6d17edc1 ("perf annotate: Use libcapstone to disassemble")
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-1-lihuafei1@huawei.com


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