cryptohome: Fix part of memory leak in unittest.
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 these two places are fixed.
Change-Id: Ibc0f58eaeb3160c0345e21c17c03affe191a050e
Reviewed-on: https://chromium-review.googlesource.com/202468
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
2 files changed