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.
BUG=chromium:378815
TEST=Memory leaks at |Lockbox| and |Service| are gone.
Change-Id: I8cd40787ed31ff36d7fbd9ef7ab4c5764172c114
Reviewed-on: https://chromium-review.googlesource.com/202450
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Reviewed-by: Will Drewry <wad@chromium.org>
4 files changed