aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2024-08-13 04:06:12 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-08-14 12:35:18 +0000
commita05031713d460de5ff8500680458ed8f3fd946e6 (patch)
tree6885a1ed32b4d3e6c0acda40e83e34c836a95a9b /tools/perf/util/annotate.c
parentperf inject: Inject build ids for entire call chain (diff)
downloadkernel-a05031713d460de5ff8500680458ed8f3fd946e6.tar.gz
kernel-a05031713d460de5ff8500680458ed8f3fd946e6.zip
perf disasm: Fix memory leak for locked operations
lock__parse() calls disasm_line__parse() passing &ops->locked.ins.name that will use strdup() to populate it. Ensure ops->locked.ins.name is freed in lock__delete(). Found with address/leak sanitizer. Signed-off-by: Ian Rogers <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kajol Jain <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Richter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions