http://llvm.org/bugs/show_bug.cgi?id=2518
Summary: scan-build treats -[NSAutoreleasePool drain] as -
[NSAutoreleasePool release]
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
This was found with the common idiom of having an autorelease pool around a
loop:
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
while(â¦) {
â¦do some stuffâ¦
[pool drain];
}
[pool release];
In this example, scan-build will report Use-After-Release bugs on [pool drain]
(for the second pass through the loop) and on [pool release] (after a single
pass through the loop).
--
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