From: Benjamin Kramer Date: Sat, 13 Jun 2015 12:53:21 +0000 (+0000) Subject: [LinkerTest] Don't leak error string. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dd183f1e4c566982bf5ad7c0a6d8552536fe5444;p=oota-llvm.git [LinkerTest] Don't leak error string. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239673 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Linker/LinkModulesTest.cpp b/unittests/Linker/LinkModulesTest.cpp index 58a3e72f63e..2a0a7bfa847 100644 --- a/unittests/Linker/LinkModulesTest.cpp +++ b/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