Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fd2c4b11 authored by Gopikrishnaiah Anandan's avatar Gopikrishnaiah Anandan
Browse files

ASoC: pcm: Remove double free in case of error condition



If dpcm_fe_dai_open doesn't find a valid path,memory allocated for list
of dapm widgets is being freed.List is accessed in function after
freeing and it is being freed at the end.
This change will ensure that list is freed at the end to
prevent double free and any invalid access in case of error conditions.

CRs-fixed: 663092
Change-Id: I1c345459d8ba6f4b8e2d2545b298ea3c0c1797a2
Signed-off-by: default avatarGopikrishnaiah Anandan <agopik@codeaurora.org>
parent 2f04273d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment