<div dir="ltr">Thanks for the fix, Benjamin. Shouldn't this use LLVMDisposeMessage though, rather than free?<br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 13, 2015 at 5:53 AM, Benjamin Kramer <span dir="ltr"><<a href="mailto:benny.kra@googlemail.com" target="_blank">benny.kra@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Author: d0k<br>
Date: Sat Jun 13 07:53:21 2015<br>
New Revision: 239673<br>
<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject-3Frev-3D239673-26view-3Drev&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=Ydpu4IpbAFh_-ii5JvvC4TIs3zlJ5wE2ApsUQ03nBzY&s=SEYYYE1imEQmuGp75ed0RDvDM3yZoUbTrREvn9HUe9k&e=" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=239673&view=rev</a><br>
Log:<br>
[LinkerTest] Don't leak error string.<br>
<br>
Modified:<br>
    llvm/trunk/unittests/Linker/LinkModulesTest.cpp<br>
<br>
Modified: llvm/trunk/unittests/Linker/LinkModulesTest.cpp<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_llvm_trunk_unittests_Linker_LinkModulesTest.cpp-3Frev-3D239673-26r1-3D239672-26r2-3D239673-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=Ydpu4IpbAFh_-ii5JvvC4TIs3zlJ5wE2ApsUQ03nBzY&s=XrGR_XnC7rVnOIRUReN4KzGZgkBKnAHkoezjJ4D-2Lo&e=" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Linker/LinkModulesTest.cpp?rev=239673&r1=239672&r2=239673&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/unittests/Linker/LinkModulesTest.cpp (original)<br>
+++ llvm/trunk/unittests/Linker/LinkModulesTest.cpp Sat Jun 13 07:53:21 2015<br>
@@ -216,6 +216,7 @@ TEST_F(LinkModuleTest, CAPIFailure) {<br>
                                     LLVMLinkerDestroySource, &errout);<br>
   EXPECT_EQ(1, result);<br>
   EXPECT_STREQ("Linking globals named 'foo': symbol multiply defined!", errout);<br>
+  std::free(errout);<br>
 }<br>
<br>
 } // end anonymous namespace<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div></div>