commit | d484366beeab0cded9644083172151c5afacc503 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Fri Jul 23 05:53:53 2010 +0000 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Tue Aug 03 07:46:27 2010 +0100 |
tree | a560757325c9c842e12c4f87b25e759b1997a341 | |
parent | 4eaac50552395f693b8c428872e8b5311c3dab60 [diff] |
ASoC: wm8978: fix a memory leak if a wm8978_register fail There is a memory leak found if wm8978_register() fail. This patch moves the buffer allocate and release at the same level to prevent the memory leak. Signed-off-by: Axel Lin <axel.lin@gmail.com> Reviewed-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>