[PATCH 0/3] perf: Clean up and fix potential mem leak

From: Shang XiaoJing
Date: Sat Sep 03 2022 - 02:51:02 EST


Some clean up in perf.c and builtin-c2c.c.

Shang XiaoJing (3):
perf clean: Add same_cmd_with_prefix helper
perf c2c: Add helpers to get counts of loads or stores
perf c2c: Prevent potential memory leak in c2c_he_zalloc

tools/perf/builtin-c2c.c | 79 ++++++++++++++++++++--------------------
tools/perf/perf.c | 12 ++++--
2 files changed, 48 insertions(+), 43 deletions(-)

--
2.17.1