mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
[LinkerTest] Don't leak error string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239673 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9223c2cb1e
commit
dd183f1e4c
@ -216,6 +216,7 @@ TEST_F(LinkModuleTest, CAPIFailure) {
|
|||||||
LLVMLinkerDestroySource, &errout);
|
LLVMLinkerDestroySource, &errout);
|
||||||
EXPECT_EQ(1, result);
|
EXPECT_EQ(1, result);
|
||||||
EXPECT_STREQ("Linking globals named 'foo': symbol multiply defined!", errout);
|
EXPECT_STREQ("Linking globals named 'foo': symbol multiply defined!", errout);
|
||||||
|
std::free(errout);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end anonymous namespace
|
} // end anonymous namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user