summaryrefslogtreecommitdiffstats
path: root/unittests/Linker
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-06-13 12:53:21 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-06-13 12:53:21 +0000
commitdd183f1e4c566982bf5ad7c0a6d8552536fe5444 (patch)
tree0f193d0f8f593620da7769c84c54b3e5cc854a18 /unittests/Linker
parent9223c2cb1ec7ba5d7f3caa21d09ca59ce1cd5353 (diff)
[LinkerTest] Don't leak error string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Linker')
-rw-r--r--unittests/Linker/LinkModulesTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Linker/LinkModulesTest.cpp b/unittests/Linker/LinkModulesTest.cpp
index 58a3e72f63e9..2a0a7bfa8477 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