ASoC: wm_adsp: fix possible memory leak in wm_adsp_load_coeff()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 11 Mar 2013 16:23:15 +0000 (00:23 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Mar 2013 18:42:06 +0000 (18:42 +0000)
commitf4b828128ab64fd9dc5eec9525b38fbfeafa5c0e
tree2128f939d05d01fd78b324c5ab24a6245b25e4f3
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
ASoC: wm_adsp: fix possible memory leak in wm_adsp_load_coeff()

'file' is malloced in wm_adsp_load_coeff() 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/codecs/wm_adsp.c