Use unique_ptr to free objects when ASSERT* fail.

Now need c++14 and clang to compile std::make_unique.

BUG: 27479198
Change-Id: Ib0f2279de85c6259330d5436257f6b978420601a
3 files changed