From a4b87dbd8d314680ed475e337af264c363870ea5 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 13 Jun 2015 12:53:21 +0000 Subject: [PATCH] [LinkerTest] Don't leak error string. llvm-svn: 239673 --- llvm/unittests/Linker/LinkModulesTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/unittests/Linker/LinkModulesTest.cpp b/llvm/unittests/Linker/LinkModulesTest.cpp index 58a3e72..2a0a7bf 100644 --- a/llvm/unittests/Linker/LinkModulesTest.cpp +++ b/llvm/unittests/Linker/LinkModulesTest.cpp @@ -216,6 +216,7 @@ TEST_F(LinkModuleTest, CAPIFailure) { LLVMLinkerDestroySource, &errout); EXPECT_EQ(1, result); EXPECT_STREQ("Linking globals named 'foo': symbol multiply defined!", errout); + std::free(errout); } } // end anonymous namespace -- 2.7.4