<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 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 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 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 href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a 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>