[PATCH] ALSA: hda: fix potential memleak in 'add_widget_node'
Takashi Iwai
tiwai at suse.de
Thu Nov 10 15:28:38 CET 2022
On Thu, 10 Nov 2022 15:45:39 +0100,
Ye Bin wrote:
>
> From: Ye Bin <yebin10 at huawei.com>
>
> As 'kobject_add' may allocated memory for 'kobject->name' when return error.
> And in this function, if call 'kobject_add' failed didn't free kobject.
> So call 'kobject_put' to recycling resources.
>
> Signed-off-by: Ye Bin <yebin10 at huawei.com>
Thanks, applied now.
Takashi
More information about the Alsa-devel
mailing list