commit | d9ad02e3e0ca91fb5356f4467d73d5db56a1daa7 | [log] [tgz] |
---|---|---|
author | Kihyung Lee <kihyung2.lee@lge.com> | Fri Jun 15 12:46:42 2018 +0900 |
committer | Kihyung Lee <kihyung2.lee@lge.com> | Mon Jun 18 11:05:42 2018 +0900 |
tree | 437870af0a2490f7f8bc77294dba362edf6216b8 | |
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