]> granicus.if.org Git - clang/commit
Fix leak introduced in r194610, found by LSan.
authorNico Weber <nicolasweber@gmx.de>
Wed, 23 Apr 2014 21:41:51 +0000 (21:41 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 23 Apr 2014 21:41:51 +0000 (21:41 +0000)
commit2726ba629a64234000dd95679561910685a59632
treeb28579083ff2d2f52416b352320b5c77c100e13c
parentdb32760555be90a72191d43a6a17fee0b47133ef
Fix leak introduced in r194610, found by LSan.

LSan folks: LSan pointed to
    #0 0x4953e0 in operator new[](unsigned long) llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:64
    #1 0x7fb82af5372f in clang::RewriteRope::MakeRopeString(char const*, char const*) llvm/tools/clang/lib/Rewrite/Core/RewriteRope.cpp:796
instead of to the actual leak, which made tracking this down slower than
it could have been.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207031 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Index/CommentToXML.h
lib/Index/CommentToXML.cpp