lkml.org 
[lkml]   [2012]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] ASoC: core: fix the memory leak in case of device_add() failure
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-12-27 18:01    [W:0.090 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site