Re: [PATCH v2 3/3] perf c2c: Prevent potential memory leak in c2c_he_zalloc

From: Arnaldo Carvalho de Melo
Date: Tue Sep 06 2022 - 08:40:37 EST


Em Tue, Sep 06, 2022 at 12:31:42PM +0800, Leo Yan escreveu:
> On Tue, Sep 06, 2022 at 11:29:06AM +0800, Shang XiaoJing wrote:
> > Free allocated resources when zalloc is failed for members in c2c_he, to
> > prevent potential memory leak in c2c_he_zalloc.
> >
> > Signed-off-by: Shang XiaoJing <shangxiaojing@xxxxxxxxxx>
> > Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>
>
> Reviewed-by: Leo Yan <leo.yan@xxxxxxxxxx>

Thanks, applied to perf/urgent.

- Arnaldo