[0/2] Perf fix two memory leakage

Message ID 20231207081635.8427-1-yangyicong@huawei.com
Headers
Series Perf fix two memory leakage |

Message

Yicong Yang Dec. 7, 2023, 8:16 a.m. UTC
  From: Yicong Yang <yangyicong@hisilicon.com>

ASan reports two memory leakage in the raw trace dump mode `perf report -D`.
One is in the framework and can be reproduced when using hisi_ptt and
arm_spe, which is fixed in Patch 1/2. Another is in the hisi_ptt parser
and fixed in Patch 2/2.

Yicong Yang (2):
  perf header: Fix one memory leakage in
    perf_event__fprintf_event_update()
  perf hisi-ptt: Fix one memory leakage in
    hisi_ptt_process_auxtrace_event()

 tools/perf/util/header.c   | 5 +++--
 tools/perf/util/hisi-ptt.c | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)
  

Comments

Ian Rogers Dec. 7, 2023, 6:45 p.m. UTC | #1
On Thu, Dec 7, 2023 at 12:20 AM Yicong Yang <yangyicong@huawei.com> wrote:
>
> From: Yicong Yang <yangyicong@hisilicon.com>
>
> ASan reports two memory leakage in the raw trace dump mode `perf report -D`.
> One is in the framework and can be reproduced when using hisi_ptt and
> arm_spe, which is fixed in Patch 1/2. Another is in the hisi_ptt parser
> and fixed in Patch 2/2.
>
> Yicong Yang (2):
>   perf header: Fix one memory leakage in
>     perf_event__fprintf_event_update()
>   perf hisi-ptt: Fix one memory leakage in
>     hisi_ptt_process_auxtrace_event()
>
>  tools/perf/util/header.c   | 5 +++--
>  tools/perf/util/hisi-ptt.c | 1 +
>  2 files changed, 4 insertions(+), 2 deletions(-)

The series:

Reviewed-by: Ian Rogers <irogers@google.com>

Thanks,
Ian

> --
> 2.24.0
>