ALSA: control: Fix unannotated kfree() cleanup
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Mar 2024 06:27:20 +0000 (07:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Mar 2024 06:30:48 +0000 (07:30 +0100)
commit14d811467f6592aa0e685730e66b5f9123287468
tree335f0658fe2d16d8506fb905f9225f2925f50e33
parent33affa7fb46c0c07f6c49d4ddac9dd436715064c
ALSA: control: Fix unannotated kfree() cleanup

The recent conversion to the automatic kfree() forgot to mark a
variable with __free(kfree), leading to memory leaks.  Fix it.

Fixes: 1052d9882269 ("ALSA: control: Use automatic cleanup of kfree()")
Reported-by: Mirsad Todorovac <mirsad.todorovac@alu.unizg.hr>
Closes: https://lore.kernel.org/r/c1e2ef3c-164f-4840-9b1c-f7ca07ca422a@alu.unizg.hr
Message-ID: <20240320062722.31325-1-tiwai@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c