]> granicus.if.org Git - clang/commit
Fix two leaks found by LSan.
authorNico Weber <nicolasweber@gmx.de>
Thu, 24 Apr 2014 05:16:45 +0000 (05:16 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 24 Apr 2014 05:16:45 +0000 (05:16 +0000)
commit4674f25eb2d99d333bbcc67dc2f6b2ae84690467
tree3ddf9a67b0956df843ac4bd0dea304371b04392c
parent1f7b913611b3cb30b6e153915aa79a48006ee936
Fix two leaks found by LSan.

A CursorPlatformAvailability can have several "unavailable" attributes, don't
leak all but the first.  I'm not sure if there can be several "deprecate"ds too,
but add the same logic there to keep the two code paths looking the same.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207076 91177308-0d34-0410-b5e6-96231b3b80d8
tools/libclang/CIndex.cpp