Fix memory leak in error paths in YAMLTraits by using unique_ptr
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 15 Sep 2014 18:39:24 +0000 (18:39 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 15 Sep 2014 18:39:24 +0000 (18:39 +0000)
commitec182fe2e5a309646451c880c76df184ab72c385
treeb9e57e692f5179d76b2dd72ea2bc7819793f750a
parent3f0ce4fa1860be10dd9aef4ce0bbb09d0c482963
Fix memory leak in error paths in YAMLTraits by using unique_ptr

There's some other cleanup that could happen here, but this is at least
the mechanical transformation to unique_ptr.

Derived from a patch by Anton Yartsev.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217803 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/YAMLTraits.h
lib/Support/YAMLTraits.cpp