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
public:
CommentToXMLConverter() : FormatContext(0), FormatInMemoryUniqueId(0) {}
+ ~CommentToXMLConverter();
void convertCommentToHTML(const comments::FullComment *FC,
SmallVectorImpl<char> &HTML,
Result << "]]>";
}
+CommentToXMLConverter::~CommentToXMLConverter() {
+ delete FormatContext;
+}
+
void CommentToXMLConverter::convertCommentToHTML(const FullComment *FC,
SmallVectorImpl<char> &HTML,
const ASTContext &Context) {