mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 10:34:55 +08:00
dec242b6a8
When snd_gf1_mem_xalloc() returns NULL, the current code still leaves the formerly allocated block.name string but returns an error immediately. This patch does code-refactoring to move the kstrdup() call itself into snd_gf1_mem_xalloc() and deals with the resource free in the helper code by itself for fixing those memory leaks. Suggested-by: Jaroslav Kysela <perex@perex.cz> Reviewed-by: Jaroslav Kysela <perex@perex.cz> Link: https://lore.kernel.org/r/20211213132444.22385-2-tiwai@suse.de Link: https://lore.kernel.org/r/20211213141512.27359-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> |
||
---|---|---|
.. | ||
gus_dma.c | ||
gus_dram.c | ||
gus_io.c | ||
gus_irq.c | ||
gus_main.c | ||
gus_mem_proc.c | ||
gus_mem.c | ||
gus_mixer.c | ||
gus_pcm.c | ||
gus_reset.c | ||
gus_tables.h | ||
gus_timer.c | ||
gus_uart.c | ||
gus_volume.c | ||
gusclassic.c | ||
gusextreme.c | ||
gusmax.c | ||
interwave-stb.c | ||
interwave.c | ||
Makefile |