commit | 67810646ca83b77940eb9b54c507d2940eabf7c6 | [log] [tgz] |
---|---|---|
author | Zhizhou Yang <zhizhouy@google.com> | Tue Aug 15 16:43:12 2017 -0700 |
committer | Zhizhou Yang <zhizhouy@google.com> | Wed Aug 16 10:14:39 2017 -0700 |
tree | 8dd5931ddcf92e34669e7a9279466de3025cf268 | |
parent | f402866c6aab58d8f991f1122976714caebf7eee [diff] |
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