Re: [alsa-devel] [PATCH] [ASoC][soc-dapm] : memory leak in the func snd_soc_dapm_new_dai

2019-07-29 Thread Charles Keepax
On Thu, Jul 25, 2019 at 09:43:35PM +0530, Satendra Singh Thakur wrote: > In the func snd_soc_dapm_new_dai, if the inner func > snd_soc_dapm_alloc_kcontrol fails, there will be memory leak. > The label param_fail wont free memory which is allocated by > the func devm_kcalloc. Hence new label is

[PATCH] [ASoC][soc-dapm] : memory leak in the func snd_soc_dapm_new_dai

2019-07-25 Thread Satendra Singh Thakur
In the func snd_soc_dapm_new_dai, if the inner func snd_soc_dapm_alloc_kcontrol fails, there will be memory leak. The label param_fail wont free memory which is allocated by the func devm_kcalloc. Hence new label is created for this purpose. Signed-off-by: Satendra Singh Thakur ---