aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2021-11-18 07:38:04 +0000
committerArnaldo Carvalho de Melo <[email protected]>2021-11-18 13:18:03 +0000
commitd9fc706108c15f8bc2d4ccccf8e50f74830fabd9 (patch)
tree6429455dcf71a961111daffdf78c4f96da0c7aae /tools/perf/scripts/python/libxed.py
parentperf hist: Fix memory leak of a perf_hpp_fmt (diff)
downloadkernel-d9fc706108c15f8bc2d4ccccf8e50f74830fabd9.tar.gz
kernel-d9fc706108c15f8bc2d4ccccf8e50f74830fabd9.zip
perf report: Fix memory leaks around perf_tip()
perf_tip() may allocate memory or use a literal, this means memory wasn't freed if allocated. Change the API so that literals aren't used. At the same time add missing frees for system_path. These issues were spotted using leak sanitizer. Signed-off-by: Ian Rogers <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions