ASoC: wcd9310: Fix memory leak and NULL dereferencing
Dereference of tabla structure's content without checking if tabla
is NULL will cause a crash.
Jumping to label fail will cause tabla to be not freed and hence
a memory leak.
Signed-off-by:
Shiv Maliyappanahalli <smaliyap@codeaurora.org>
Change-Id: I4ad10f5ef4d051dc2f881dc385ae2690c590d042
Loading
Please sign in to comment