<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">This has been found by Coverity
(<a class="moz-txt-link-freetext" href="http://scan.coverity.com/">http://scan.coverity.com/</a>).<br>
They are doing static analysis unlike msan. I don't know how you
can fall in this case.<br>
<br>
Cheers,<br>
Sylvestre<br>
<br>
On 18/08/2014 18:23, Nico Weber wrote:<br>
</div>
<blockquote
cite="mid:CAMGbLiFmU5aBNLsD9m_TSB3F0-2gOkGAoPrnH2i8zNTWkXeU2Q@mail.gmail.com"
type="cite">
<div dir="ltr">We have a (green) msan bot that should've found
this too. I guess this isn't covered by a test? Is there a way
to do that?</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Aug 18, 2014 at 8:18 AM,
Sylvestre Ledru <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:sylvestre@debian.org" target="_blank">sylvestre@debian.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Author:
sylvestre<br>
Date: Mon Aug 18 10:18:56 2014<br>
New Revision: 215898<br>
<br>
URL: <a moz-do-not-send="true"
href="http://llvm.org/viewvc/llvm-project?rev=215898&view=rev"
target="_blank">http://llvm.org/viewvc/llvm-project?rev=215898&view=rev</a><br>
Log:<br>
Fix a memory leak in one of the test unit. Silent coverity
warning CID 1095912<br>
<br>
Modified:<br>
cfe/trunk/tools/c-index-test/c-index-test.c<br>
<br>
Modified: cfe/trunk/tools/c-index-test/c-index-test.c<br>
URL: <a moz-do-not-send="true"
href="http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=215898&r1=215897&r2=215898&view=diff"
target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=215898&r1=215897&r2=215898&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)<br>
+++ cfe/trunk/tools/c-index-test/c-index-test.c Mon Aug 18
10:18:56 2014<br>
@@ -1643,6 +1643,7 @@ static int perform_file_scan(const
char<br>
<br>
if ((fp = fopen(source_file, "r")) == NULL) {<br>
fprintf(stderr, "Could not open '%s'\n", source_file);<br>
+ clang_disposeTranslationUnit(TU);<br>
return 1;<br>
}<br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a moz-do-not-send="true"
href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a moz-do-not-send="true"
href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits"
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>