Re: [PATCH] ALSA: hda - Fix a memory leak bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 10 Aug 2019 06:29:48 +0200,
Wenwen Wang wrote:
> 
> In snd_hda_parse_generic_codec(), 'spec' is allocated through kzalloc().
> Then, the pin widgets in 'codec' are parsed. However, if the parsing
> process fails, 'spec' is not deallocated, leading to a memory leak.
> 
> To fix the above issue, free 'spec' before returning the error.
> 
> Signed-off-by: Wenwen Wang <wenwen@xxxxxxxxxx>

Applied, thanks.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux