diff options
author | Janis Danisevskis <jdanis@google.com> | 2019-06-05 16:42:12 -0700 |
---|---|---|
committer | Janis Danisevskis <jdanis@google.com> | 2019-06-20 22:31:06 +0000 |
commit | 6a9c4e7968e73393110b169b33fb636531fe7fc2 (patch) | |
tree | 865537d22fd47aee4a2c2aaa793f54681bbaed64 /trusty/coverage/coverage.cpp | |
parent | 35629db6feb980f11bf897768bb05f939d1e66e0 (diff) |
Fix a memory leak in gatekeeper.
In violation to the documentation of GateKeeper::GetAuthTokenKey and
GateKeeper::GetPasswordKey, the implementations in SoftGateKeeper
allocate and return buffers and relinquish ownership causing a memory
leak, because the caller expects the implementation to retain ownership.
Bug: 129768470
Bug: 134557251
Test: gatekeeper-unit-tests
Change-Id: I0af9539d3dcd47dfd1e7d80cdee700ea0c2d6d0f
Merged-In: I0af9539d3dcd47dfd1e7d80cdee700ea0c2d6d0f
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions