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

           Summary: False Positive of Potential Leak from Property
           Product: clang
           Version: 2.9
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=7161)
 --> (http://llvm.org/bugs/attachment.cgi?id=7161)
screenshot of analysis

The static analysis of the 'test' method says that an object is allocated on
line 18 is stored into newMergingList and then never used. However, it is used
in the next line and the retainCount should not be affected.

****


@interface testViewController : UIViewController

- (void)addProductCollection:(id)newProductCollection
removingExisting:(BOOL)removeExisting;
@property (nonatomic, retain) id newProductCollection;

@end

@implementation testViewController

@synthesize newProductCollection = _newProductCollection;

- (void)addProductCollection:(id)newProductCollection
removingExisting:(BOOL)removeExisting
{
}

- (void)test
{
    id newMergingList = self.newProductCollection;
    [self addProductCollection:newMergingList removingExisting:0];
}


@end

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to