[alsa-devel] [PATCH 1/2] ASoC: core: fix the memory leak in case of device_add() failure

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Dec 27 17:16:41 CET 2012


On Wed, Dec 26, 2012 at 12:56:05AM +0800, Chuansheng Liu wrote:
> 
> After called device_initialize(), even device_add() returns
> error, we still need use the put_device() to release the reference
> to call rtd_release(), which will do the free() action.

Applied both, 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/20121227/982ef03e/attachment.sig>


More information about the Alsa-devel mailing list