Always pass an allocator to YAMLTraits.
authorPete Cooper <peter_cooper@apple.com>
Thu, 17 Mar 2016 00:33:58 +0000 (00:33 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 17 Mar 2016 00:33:58 +0000 (00:33 +0000)
commit590872b0c2ef0efa4460d859160bbb05f67c020e
tree31d0f7122b8b3fe381a8762520e9c74a53d29ae8
parent3b32ebb97b78f08a5bd0f4c4c46e89f18fc59f01
Always pass an allocator to YAMLTraits.

The YAML traits new's when not passed an allocator to parse data.
For atom types, this is a leak as we don't destruct atoms.  For
the File here, we do actually destruct File's so that single case of
not using an allocator will be fine.

Should fix a bunch more leaks.

llvm-svn: 263680
lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp