r207223 - fix a test-only leak found by lsan, PR19521
Kostya Serebryany
kcc at google.com
Fri Apr 25 05:58:43 PDT 2014
Author: kcc
Date: Fri Apr 25 07:58:42 2014
New Revision: 207223
URL: http://llvm.org/viewvc/llvm-project?rev=207223&view=rev
Log:
fix a test-only leak found by lsan, PR19521
Modified:
cfe/trunk/unittests/Tooling/ToolingTest.cpp
Modified: cfe/trunk/unittests/Tooling/ToolingTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/ToolingTest.cpp?rev=207223&r1=207222&r2=207223&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/ToolingTest.cpp (original)
+++ cfe/trunk/unittests/Tooling/ToolingTest.cpp Fri Apr 25 07:58:42 2014
@@ -348,6 +348,7 @@ TEST(ClangToolTest, InjectDiagnosticCons
Tool.buildASTs(ASTs);
EXPECT_EQ(1u, ASTs.size());
EXPECT_EQ(1u, Consumer.NumDiagnosticsSeen);
+ llvm::DeleteContainerPointers(ASTs);
}
#endif
More information about the cfe-commits
mailing list