[cfe-dev] known issue? (using checker-232)
Cristian Draghici
cristian.draghici at gmail.com
Thu Dec 31 00:01:37 PST 2009
Hi
I've bumped into this recently and I can't find on http://llvm.org/bugs/
leak detected:
NSMutableArray *array = [[NSMutableArray alloc] init];
[array addObject:@"W"];
[array addObject:@"W"];
leak not detected when more then two iterations:
NSMutableArray *array = [[NSMutableArray alloc] init];
int i=0;
for(i=0;i<3;i++)
[array addObject:@"W"];
Is clang looking at a limited number of iterations and deciding defensively
not to signal the leak?
Thanks,
Cristi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091231/6ed8d8e9/attachment.html>
More information about the cfe-dev
mailing list