| commit | f32d9c5c99a319500b9ee87c53d9682f76e655f8 | [log] [tgz] |
|---|---|---|
| author | Yunlian Jiang <[email protected]> | Mon Jun 02 23:06:07 2014 |
| committer | chrome-internal-fetch <[email protected]> | Tue Jun 03 20:40:18 2014 |
| tree | ccd0415beaf5c01249befd6d3633fc1dc328c793 | |
| parent | ec251ad847e8ed53f0ee560d472288474ea3138e [diff] |
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 <[email protected]> Commit-Queue: Yunlian Jiang <[email protected]> Tested-by: Yunlian Jiang <[email protected]> Reviewed-by: Will Drewry <[email protected]>