Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Incorrect detection of nil object #21486

Open Quuxplusone opened 9 years ago

Quuxplusone commented 9 years ago
Bugzilla Link PR21487
Status NEW
Importance P normal
Reported by Jacob Israel (jacobisrael@mail.usf.edu)
Reported on 2014-11-05 08:33:22 -0800
Last modified on 2014-11-05 12:32:31 -0800
Version 3.5
Hardware Macintosh MacOS X
CC ganna@apple.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
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
Quuxplusone commented 9 years ago
Jacob,

Could you attach a full test case?

Thanks,
Anna.