commit | 71842cc07aafdebc9b180322ebb46f530beca5d6 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu Jan 21 19:22:34 2010 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu Jan 21 19:22:34 2010 +0000 |
tree | fcd0770ae5a35c741b83fb53df3931187c3f8dac | |
parent | 5bb4d982230f36e6e374ea6ac83f31011a8d0a6b [diff] |
Allocate the 'Protocols' array in ObjCInterfaceType and ObjCObjectPointerType using the allocator associated with ASTContext. Not only does this fix a memory leak, but it also makes these arrays BumpPtrAllocated (in the typical case). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94090 91177308-0d34-0410-b5e6-96231b3b80d8