]> granicus.if.org Git - clang/commit
[leaks] Fix a leak recently introduced to the pragma handling. This
authorChandler Carruth <chandlerc@gmail.com>
Fri, 2 May 2014 21:44:48 +0000 (21:44 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 2 May 2014 21:44:48 +0000 (21:44 +0000)
commitf0785ab4c8a1bc5a0840681ff3ec24ed56ef504f
tree24adbcad03aa47572d66e5881aad387a617bed96
parente4b7fc5455c12a3a7194c073b72c1d9e1fcd9d39
[leaks] Fix a leak recently introduced to the pragma handling. This
whole code would be better with std::unique_ptr managing the lifetimes
of the handlers, but I wanted to make a targeted fix to the leaks first.
With this change, all of the Clang preprocessor tests are leak free with
LSan.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207872 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/Pragma.cpp