diff options
| author | Kihyung Lee <kihyung2.lee@lge.com> | 2018-06-15 12:46:42 +0900 |
|---|---|---|
| committer | Kihyung Lee <kihyung2.lee@lge.com> | 2018-06-18 11:05:42 +0900 |
| commit | d9ad02e3e0ca91fb5356f4467d73d5db56a1daa7 (patch) | |
| tree | 437870af0a2490f7f8bc77294dba362edf6216b8 /trusty/coverage/coverage_test.cpp | |
| parent | 60e9dad71ea729681474e30eeee34aed47fa324c (diff) | |
Fix memory leak when GateKeeperProxy.verify() returns
After verify() calls verifyChallenge(), the caller acquires the ownership of
returned memory block pointed by *auth_token.
However, the current implementation directly returns and lost the reference
of auth_token without freeing it from heap memory.
This patch solves this problem by explicitly deleting the auth_token array.
Change-Id: I6cfe8427174aa36fbb208e2fff8904095f468ec6
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions
