android_system_core/gatekeeperd
Kihyung Lee d9ad02e3e0 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
2018-06-18 11:05:42 +09:00
..
tests Merge "gatekeeperd: use std::unique_ptr" into oc-mr1-dev 2017-08-18 19:18:46 +00:00
Android.mk
IGateKeeperService.cpp
IGateKeeperService.h
SoftGateKeeper.h gatekeeperd: use std::unique_ptr 2017-08-17 14:58:23 +09:00
SoftGateKeeperDevice.cpp
SoftGateKeeperDevice.h gatekeeperd: use std::unique_ptr 2017-08-17 14:58:23 +09:00
gatekeeperd.cpp Fix memory leak when GateKeeperProxy.verify() returns 2018-06-18 11:05:42 +09:00
gatekeeperd.rc