diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-06-15 15:42:26 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-06-15 15:42:26 +0000 |
commit | 4f9d346fa007560c05ce01dc3089f8a0231d7d8f (patch) | |
tree | e4534d23031d53b6b14fd62f020acd567dbb8542 /unittests/Linker | |
parent | 1ec22e4a9c5f3344ec6d46b0b2990a4d3a82cadf (diff) |
[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
Diffstat (limited to 'unittests/Linker')
-rw-r--r-- | unittests/Linker/LinkModulesTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |