Re: [PATCH v3 1/2] clk: boston: fix possible memory leak in clk_boston_setup()
From: Stephen Boyd
Date: Thu Nov 08 2018 - 13:19:32 EST
Quoting Yi Wang (2018-10-31 00:41:41)
> Smatch report warnings:
> drivers/clk/imgtec/clk-boston.c:76 clk_boston_setup() warn: possible memory leak of 'onecell'
> drivers/clk/imgtec/clk-boston.c:83 clk_boston_setup() warn: possible memory leak of 'onecell'
> drivers/clk/imgtec/clk-boston.c:90 clk_boston_setup() warn: possible memory leak of 'onecell'
>
> 'onecell' is malloced in clk_boston_setup(), but not be freed
> before leaving from the error handling cases.
>
> Signed-off-by: Yi Wang <wang.yi59@xxxxxxxxxx>
> ---
Applied to clk-next