summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorKihyung Lee <kihyung2.lee@lge.com>2018-06-15 12:46:42 +0900
committerKihyung Lee <kihyung2.lee@lge.com>2018-06-18 11:05:42 +0900
commitd9ad02e3e0ca91fb5356f4467d73d5db56a1daa7 (patch)
tree437870af0a2490f7f8bc77294dba362edf6216b8 /trusty/coverage/coverage_test.cpp
parent60e9dad71ea729681474e30eeee34aed47fa324c (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