commit | 539b9dee506aa436c4fb94ee435558f452c4cf3c | [log] [tgz] |
---|---|---|
author | Janis Danisevskis <jdanis@google.com> | Wed Jun 05 16:42:12 2019 -0700 |
committer | Janis Danisevskis <jdanis@google.com> | Wed Jun 05 16:42:12 2019 -0700 |
tree | e87448b7809b7bedaa2a1f455ef4719713b77975 | |
parent | 1f0e25b9a053b878136bb2f0887847bc349da3b7 [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