commit | 3458d43b68cc2fd1cb2b2304614e1dc3419820d8 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Tue May 25 20:43:29 2010 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Tue May 25 20:43:29 2010 +0000 |
tree | ed82c0ffd8f564e219b9986b83b797e197b7d955 | |
parent | ff3dc395ba08b3a3cadc8d3121a4cb086ab287d6 [diff] |
Allocate the contents of TemplateArgumentList using ASTContext's allocator. This fixes a massive memory leak when using a BumpPtrAllocator in ASTContext. Added a FIXME, as the Destroy method for TemplateArgumentList isn't getting called. This means we will instead leak when using the MallocAllocator. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104633 91177308-0d34-0410-b5e6-96231b3b80d8