Re: [PATCH] ti: fix possible memory leak in _ti_omap4_clkctrl_setup

From: Andy Shevchenko
Date: Thu Oct 26 2023 - 08:18:13 EST


On Wed, Oct 25, 2023 at 05:07:41PM +0800, Hangyu Hua wrote:
> kstrndup and kstrdup_and_replace in clkctrl_get_name can perform

kstrndup()
kstrdup_and_replace()
clkctrl_get_name()

> dynamic memory allocation. So clkctrl_name needs to be freed when
> provider->clkdm_name is NULL.

--
With Best Regards,
Andy Shevchenko