Commit ffc26521 authored by Shiv Maliyappanahalli's avatar Shiv Maliyappanahalli
Browse files

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: default avatarShiv Maliyappanahalli <smaliyap@codeaurora.org>
Change-Id: I4ad10f5ef4d051dc2f881dc385ae2690c590d042
parent 7de67f73
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment