[alsa-devel] [PATCH] ASoC: core: fix possible memory leak in snd_soc_bytes_put()

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Mar 12 19:43:19 CET 2013


On Tue, Mar 12, 2013 at 12:35:14AM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> 
> 'data' is malloced in snd_soc_bytes_put() and should be freed
> before leaving from the error handling cases, otherwise it will cause
> memory leak.

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130312/46877128/attachment.sig>


More information about the Alsa-devel mailing list