aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/MultiplexExternalSemaSource.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-05-14 20:46:12 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-05-14 20:46:12 +0000
commit4936030ed38ff30852e056927a29df854105bcf8 (patch)
treefb9550a34c465fbc9f01350e86a70be013f1b1ca /clang/lib/Sema/MultiplexExternalSemaSource.cpp
parent7c8a3b0ef6172a919d760a717d819069a4b55c71 (diff)
downloadllvm-4936030ed38ff30852e056927a29df854105bcf8.zip
llvm-4936030ed38ff30852e056927a29df854105bcf8.tar.gz
llvm-4936030ed38ff30852e056927a29df854105bcf8.tar.bz2
Fix memory leak introduced in r237314.
The commit r237314 that implements YAML block parsing introduced a leak that was caught by the ASAN linux buildbot. YAML Parser stores its tokens in an ilist, and allocates tokens using a BumpPtrAllocator, but doesn't call the destructor for the allocated tokens. R237314 added an std::string field to a Token which leaked as the Token's destructor wasn't called. This commit fixes this leak by calling the Token's destructor when a Token is being removed from an ilist of tokens. llvm-svn: 237389
Diffstat (limited to 'clang/lib/Sema/MultiplexExternalSemaSource.cpp')
0 files changed, 0 insertions, 0 deletions