aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2024-07-31 23:55:01 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-08-01 21:55:55 +0000
commit3da209bb1177462b6fe8e3021a5527a5a49a9336 (patch)
tree1ce719c1d6384f67938acc904a1fdde6ebc9b4e9 /tools/perf/builtin-annotate.c
parentperf hist: Correct hist_entry->mem_info refcounts (diff)
downloadkernel-3da209bb1177462b6fe8e3021a5527a5a49a9336.tar.gz
kernel-3da209bb1177462b6fe8e3021a5527a5a49a9336.zip
perf mem: Free the allocated sort string, fixing a leak
The get_sort_order() returns either a new string (from strdup) or NULL but it never gets freed. Signed-off-by: Namhyung Kim <[email protected]> Fixes: 2e7f545096f954a9 ("perf mem: Factor out a function to generate sort order") Cc: Adrian Hunter <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Added Fixes tag ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions