http://llvm.org/bugs/show_bug.cgi?id=7638

           Summary: "for" loop prevents leak diagnostics
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Building the following test.m file with:

/Volumes/Space/Users/bungi/Source/LLVM/llvm/Release+Asserts/bin/clang -x
objective-c --analyze test.m

… I get no diagnostics. But, there are four locals leaked (newOutlineNodes,
forecastOutlineNodes, formatter and shortFormatter).

Commenting out the for loop (leaving the body, just not the two lines
comprising the start and closing curly of the loop) allows the leaks to be
found.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to