From: Benjamin Kramer Date: Mon, 15 Jun 2015 15:42:26 +0000 (+0000) Subject: [LinkerTest] Use LLVMDisposeMessage to free error string. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4f9d346fa007560c05ce01dc3089f8a0231d7d8f;p=oota-llvm.git [LinkerTest] Use LLVMDisposeMessage to free error string. LLVMDisposeMessage is just a thing wrapper around free at the moment, but it's the proper API to use here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239731 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Linker/LinkModulesTest.cpp b/unittests/Linker/LinkModulesTest.cpp index 2a0a7bfa847..45f1308d3bd 100644 --- a/unittests/Linker/LinkModulesTest.cpp +++ b/unittests/Linker/LinkModulesTest.cpp @@ -216,7 +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); + LLVMDisposeMessage(errout); } } // end anonymous namespace