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

From: Leo Yan
Date: Tue Sep 06 2022 - 00:31:55 EST


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>