ASoC: qcom: lpass-platform: Fix memory leak
authorSrinivasa Rao Mandadapu <srivasam@codeaurora.org>
Sun, 15 Nov 2020 04:56:50 +0000 (10:26 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2020 20:02:41 +0000 (20:02 +0000)
commitbd6327fda2f3ded85b69b3c3125c99aaa51c7881
tree887d124c1da68501e64e8871149add5d5fcaf0cc
parent1bd7b0fc0165694897b7d2fb39751a07b98f6bf1
ASoC: qcom: lpass-platform: Fix memory leak

lpass_pcm_data is not freed in error paths. Free it in
error paths to avoid memory leak.

Fixes: 022d00ee0b55 ("ASoC: lpass-platform: Fix broken pcm data usage")
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: V Sujith Kumar Reddy <vsujithk@codeaurora.org>
Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org>
Link: https://lore.kernel.org/r/1605416210-14530-1-git-send-email-srivasam@codeaurora.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/lpass-platform.c