]> granicus.if.org Git - clang/commit
Fix leak in ObjCSelfInitChecker, found by LSan.
authorNico Weber <nicolasweber@gmx.de>
Tue, 6 May 2014 17:33:42 +0000 (17:33 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 6 May 2014 17:33:42 +0000 (17:33 +0000)
commit83bc50acb4b504f9a0c33d83db543fb42c5166a8
tree1b3dd4d7632b877bacc5243641d51c876989b78c
parentae8a33daa177532359f65794dea183846f5b8367
Fix leak in ObjCSelfInitChecker, found by LSan.

BugReport doesn't take ownership of the bug type, so let the checker own the
the bug type.  (Requires making the bug type mutable, which is icky, but which
is also what other checkers do.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208110 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp