Lines Matching refs:leak

413 // Test a leak.
417 CFDateRef date = CFDateCreate(0, t); // expected-warning{{leak}}
425 // Test a leak involving the return.
428 CFDateRef date = CFDateCreate(0, CFAbsoluteTimeGetCurrent()); // expected-warning{{leak}}
433 // Test a leak involving an overwrite.
436 CFDateRef date = CFDateCreate(0, CFAbsoluteTimeGetCurrent()); //expected-warning{{leak}}
438 date = CFDateCreate(0, CFAbsoluteTimeGetCurrent()); // expected-warning {{leak}}
453 CFDateRef date = MyDateCreate(); // expected-warning{{leak}}
471 …iskRef disk = DADiskCreateFromBSDName(kCFAllocatorDefault, 0, "hello"); // expected-warning{{leak}}
474 disk = DADiskCreateFromIOMedia(kCFAllocatorDefault, 0, media); // expected-warning{{leak}}
477 CFDictionaryRef dict = DADiskCopyDescription(d); // expected-warning{{leak}}
480 disk = DADiskCopyWholeDisk(d); // expected-warning{{leak}}
483 DADissenterRef dissenter = DADissenterCreate(kCFAllocatorDefault, // expected-warning{{leak}}
487 DASessionRef session = DASessionCreate(kCFAllocatorDefault); // expected-warning{{leak}}
527 CFTypeRef o = MyCreateFun(); // expected-warning {{leak}}
558 // This case exercises the logic where the leak site is the same as the allocation site.
560 CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks); // expected-warning{{leak}}
661 NSString *kind = [[NSString alloc] initWithUTF8String:inkind]; // expected-warning{{leak}}
774 …ionary *dict = [[NSMutableDictionary dictionaryWithCapacity:4] retain]; // expected-warning{{leak}}
786 …onary *dict = [[NSMutableDictionary dictionaryWithCapacity:4] retain]; // expected-warning{{leak}}
875 [[RDar6320065Subclass alloc] init]; // expected-warning {{leak}}
919 - (NSString*) NoCopyString { return [[NSString alloc] init]; } // expected-warning{{leak}}
920 - (NSString*) noCopyString { return [[NSString alloc] init]; } // expected-warning{{leak}}
924 [x NoCopyString]; // expected-warning{{leak}}
925 [x noCopyString]; // expected-warning{{leak}}
959 return [[NSString alloc] init]; // expected-warning{{leak}}
989 [view createSnapshotImageOfType:str]; // expected-warning{{leak}}
990 [renderer createSnapshotImageOfType:str]; // expected-warning{{leak}}
991 [context createCGImage:img fromRect:rect]; // expected-warning{{leak}}
992 [context createCGImage:img fromRect:rect format:form colorSpace:cs]; // expected-warning{{leak}}
1001 [context createCGLayerWithSize:size info:d]; // expected-warning{{leak}}
1010 IOBSDNameMatching(masterPort, options, bsdName); // expected-warning{{leak}}
1014 IOServiceMatching(name); // expected-warning{{leak}}
1018 IOServiceNameMatching(name); // expected-warning{{leak}}
1033 IORegistryEntryIDMatching(entryID); // expected-warning{{leak}}
1038 IOOpenFirmwarePathMatching(masterPort, options, path); // expected-warning{{leak}}
1099 NSNumber *number = [[NSNumber alloc] initWithInt:5]; // expected-warning{{leak}}
1124 CGGradientCreateWithColorComponents(CGColorSpaceCreateDeviceRGB(), // expected-warning{{leak}}
1146 …GColorSpaceCreateDeviceRGB(), components, locations, num_locations); // expected-warning 2 {{leak}}
1154 // thread in pthread_create marked as leak
1184 NSNumber *number = [[NSNumber alloc] initWithInt:5]; // expected-warning{{leak}}
1198 // <rdar://problem/7283567> False leak associated with call to
1298 // <rdar://problem/7358899> False leak associated with
1319 CGBitmapContextCreateWithData(data, width, height, bitsPerComponent, // expected-warning{{leak}}
1337 id y = [x new_stuff]; // expected-warning{{leak}}
1358 NSNumber *number = [[NSNumber alloc] initWithInt:5]; // expected-warning{{leak}}
1398 NSString *str = [X returnsAnOwnedString]; // expected-warning{{leak}}
1402 NSString *str = [X returnsAnOwnedCFString]; // expected-warning{{leak}}
1407 NSString *str2 = [X newStringNoAttr]; // expected-warning{{leak}}
1409 NSString *str4 = [[X newString_auto] retain]; // expected-warning {{leak}}
1413 TestOwnershipAttr *x = [TestOwnershipAttr alloc]; // expected-warning{{leak}}
1417 TestOwnershipAttr *x = [[TestOwnershipAttr alloc] pseudoInit]; // expected-warning{{leak}}
1421 TestOwnershipAttr *x = [[TestOwnershipAttr alloc] pseudoInit];// expected-warning{{leak}}
1453 return [NSString alloc]; // expected-warning {{Potential leak of an object}}
1474 return (NSDate*) returnsRetainedCFDate(); // No leak.
1478 return returnsRetainedCFDate(); // No leak.
1490 return (NSDate*) returnsRetainedCFDate(); // expected-warning{{leak}}
1494 return returnsRetainedCFDate(); // expected-warning{{leak}}
1506 // <rdar://problem/5905851> do not report a leak when post-dominated by a call
1515 … value = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &z); // expected-warning{{leak}}
1526 …f value = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &z); // expected-warning{{leak}}
1549 NSNumber *number = [[NSNumber alloc] initWithInt:5]; // expected-warning{{leak}}
1559 // Eventually this should be reported as a leak.
1570 NSNumber *number = [[NSNumber alloc] initWithInt:5]; // expected-warning {{leak}}
1628 … info = CFErrorCopyUserInfo(error_to_dump); // expected-warning{{Potential leak of an object}}
1684 return CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks); // expected-warning {{leak}}
1692 return CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks); // expected-warning {{leak}}
1713 return CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks); // expected-warning {{leak}}
1725 return CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks); // expected-warning {{leak}}
1746 CFTypeRef vals[] = { CFDateCreate(0, t) }; // expected-warning {{leak}}
1904 NSArray *a = [[NSArray alloc] initWithObjects:o, (void*)0]; // expected-warning {{leak}}
1913 NSArray *a2 = [[NSArray alloc] initWithArray:a1]; // expected-warning {{leak}}
1921 NSArray *a3 = [@[o] retain]; // expected-warning {{leak}}
1929 NSArray *a = [[NSArray alloc] initWithArray:@[o]]; // expected-warning {{leak}}
1938 NSDictionary *a = [@{o : o} retain]; // expected-warning {{leak}}
1947 id value = [@1 retain]; // expected-warning {{leak}}
1952 id value = [@(x) retain]; // expected-warning {{leak}}
1955 value = [@(y) retain]; // expected-warning {{leak}}
2023 MyCFType x = CreateMyCFType(); // expected-warning {{leak of an object stored into 'x'}}
2058 MyCFType obj = makeCustom(); // expected-warning {{leak of an object stored into 'obj'}}
2081 id x = [[MyObj12706177 alloc] initX]; //expected-warning {{Potential leak of an object}}