aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/StringRef.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-10-19 21:30:15 +0000
committerTed Kremenek <kremenek@apple.com>2010-10-19 21:30:15 +0000
commite75b876fb9b57aeb46a1acdcab12e2975efd8d10 (patch)
tree11933a93bd1d794effc0773bfc3f1c57c7012786 /llvm/lib/Support/StringRef.cpp
parentb865f7e025539adce4f4219cc5bc3a54f773503e (diff)
downloadllvm-e75b876fb9b57aeb46a1acdcab12e2975efd8d10.zip
llvm-e75b876fb9b57aeb46a1acdcab12e2975efd8d10.tar.gz
llvm-e75b876fb9b57aeb46a1acdcab12e2975efd8d10.tar.bz2
Really fix: <rdar://problem/8361834> MacroInfo::AddTokenToBody() leaks memory
The problem was not the management of MacroInfo objects, but that when we recycle them via the MICache the memory of the underlying SmallVector (within MacroInfo) was not getting released. This is because objects stashed into MICache simply are reused with a placement new, and never have their destructor called. llvm-svn: 116862
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions