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

Skip to content
Commit 8c2559c8 authored by Sultanxda's avatar Sultanxda Committed by TALU
Browse files

msm: camera: sensor: Fix memory leaks when sensor probe fails



The power settings for a camera sensor can be parsed and have its memory
never freed in the error path if part of the probe sequence fails after
the power settings are parsed.

Free the power settings in the error paths to fix the memory leaks.

Change-Id: I4227275c770d97163c6a095dbc81338cbfef3bbe
Signed-off-by: default avatarSultanxda <sultanxda@gmail.com>
parent 6563929f
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