[LLVMbugs] [Bug 7767] New: Leak not found when returning +1 ref object out of a function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 30 16:24:14 PDT 2010


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

           Summary: Leak not found when returning +1 ref object out of a
                    function
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            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


Created an attachment (id=5300)
 --> (http://llvm.org/bugs/attachment.cgi?id=5300)
test case

If you don't define a function as returning a +1 {CF,NS} ref, returning a +1
ref object should warn.

I just fixed a leak our source base due to this gap in reference tracking
(tested with checker-246).

-- 
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