[LLVMbugs] [Bug 7638] New: "for" loop prevents leak diagnostics

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 13 22:31:43 PDT 2010


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: kremenek at apple.com
        ReportedBy: tjw at omnigroup.com
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list