commit | c17f2569d102a109d45bf2e705b9151833f0a42a | [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 | 29ad1073bee359b5ccdea1322d25fe7e5a63be68 [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