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 <email@example.com>
Commit-Queue: Yunlian Jiang <firstname.lastname@example.org>
Tested-by: Yunlian Jiang <email@example.com>
Reviewed-by: Will Drewry <firstname.lastname@example.org>
4 files changed