ASoC: core: fix possible memory leak in snd_soc_bytes_put()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 11 Mar 2013 16:35:14 +0000 (00:35 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Mar 2013 18:42:59 +0000 (18:42 +0000)
commite8b18addee32d1f389573b4c116e67ae230216ad
tree8c276fd2504407bfe3a3ba261210322a5890c623
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
ASoC: core: fix possible memory leak in snd_soc_bytes_put()

'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.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c