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

Shang XiaoJing posted 3 patches 3 years, 7 months ago
tools/perf/builtin-c2c.c | 77 +++++++++++++++++++---------------------
tools/perf/perf.c        | 12 +++++--
2 files changed, 46 insertions(+), 43 deletions(-)
[PATCH v2 0/3] perf: Clean up and fix potential mem leak
Posted by Shang XiaoJing 3 years, 7 months ago
Some clean up in perf.c and builtin-c2c.c.

changes from v2:
- clear omissible free label in c2c_he_zalloc.

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 | 77 +++++++++++++++++++---------------------
 tools/perf/perf.c        | 12 +++++--
 2 files changed, 46 insertions(+), 43 deletions(-)

-- 
2.17.1
Re: [PATCH v2 0/3] perf: Clean up and fix potential mem leak
Posted by Arnaldo Carvalho de Melo 3 years, 7 months ago
Em Tue, Sep 06, 2022 at 11:29:03AM +0800, Shang XiaoJing escreveu:
> Some clean up in perf.c and builtin-c2c.c.
> 
> changes from v2:
> - clear omissible free label in c2c_he_zalloc.

Thanks, applied [12]/3 to perf/core for Linux v6.1.

- Arnaldo

 
> 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 | 77 +++++++++++++++++++---------------------
>  tools/perf/perf.c        | 12 +++++--
>  2 files changed, 46 insertions(+), 43 deletions(-)
> 
> -- 
> 2.17.1

-- 

- Arnaldo