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

            Bug ID: 21487
           Summary: Incorrect detection of nil object
           Product: clang
           Version: 3.5
          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

Under NON-ARC

NSString *fileName = nil;

if(){
   if(){
      if(){
        fileName = [[NSString alloc] initWithString:iconfileName];
        // ....
      }
   }
}

if(fileName)
{
   //   ...
  [fileName release];
}

// Analyzer complains that fileName could be a potential memory leak

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