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

Skip to content
Commit 67810646 authored by Zhizhou Yang's avatar Zhizhou Yang
Browse files

Fix memory leak warning in FwdLockEngine.cpp

If addValue does not succeed, there will be memory leak on
decodeSession. Fixed it by checking if addValue returns true first.

Plus fixed a small indentation error.

Test: mmm with static analyzer and warning disappears.
Change-Id: Ibf9b85e4c416e8fea8b80a3ba47f87f88573c54c
parent f402866c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment