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

            Bug ID: 18966
           Summary: False positive for potentially memory leak after
                    transferring ownership to C array storage of > 1
                    dimension
           Product: clang
           Version: 3.3
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 12143
  --> http://llvm.org/bugs/attachment.cgi?id=12143&action=edit
Self contained .m file

When retained objects are assigned into a C array of greater than 1 dimension
in a longer lived scope, the objects a potential leak is reported. I have tried
this with a static global 2d array and an instance ivar. Attached test case
contains both flavors.

Note that the same error does not occur with a 1d array.

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