cryptohome: Fix part of memory leak.
This fixes the memory leak when the |new| operator is used
as a parameter and the return type of the |new| is a regular
pointer. This patch uses scoped_ptr as the return type of the
|new| to fix the problem.
TEST=Memory leaks at |Lockbox| and |Service| are gone.
Reviewed-by: Darren Krahn <firstname.lastname@example.org>
Commit-Queue: Yunlian Jiang <email@example.com>
Tested-by: Yunlian Jiang <firstname.lastname@example.org>
Reviewed-by: Will Drewry <email@example.com>
4 files changed