Lines Matching refs:leak
383 // Test a leak.
387 CFDateRef date = CFDateCreate(0, t); // expected-warning{{leak}}
395 // Test a leak involving the return.
398 CFDateRef date = CFDateCreate(0, CFAbsoluteTimeGetCurrent()); // expected-warning{{leak}}
403 // Test a leak involving an overwrite.
406 CFDateRef date = CFDateCreate(0, CFAbsoluteTimeGetCurrent()); //expected-warning{{leak}}
408 date = CFDateCreate(0, CFAbsoluteTimeGetCurrent()); // expected-warning {{leak}}
417 CFDateRef date = MyDateCreate(); // expected-warning{{leak}}
435 …iskRef disk = DADiskCreateFromBSDName(kCFAllocatorDefault, 0, "hello"); // expected-warning{{leak}}
438 disk = DADiskCreateFromIOMedia(kCFAllocatorDefault, 0, media); // expected-warning{{leak}}
441 CFDictionaryRef dict = DADiskCopyDescription(d); // expected-warning{{leak}}
444 disk = DADiskCopyWholeDisk(d); // expected-warning{{leak}}
447 DADissenterRef dissenter = DADissenterCreate(kCFAllocatorDefault, // expected-warning{{leak}}
451 DASessionRef session = DASessionCreate(kCFAllocatorDefault); // expected-warning{{leak}}
485 CFTypeRef o = MyCreateFun(); // expected-warning {{leak}}
516 // This case exercises the logic where the leak site is the same as the allocation site.
518 CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks); // expected-warning{{leak}}
619 NSString *kind = [[NSString alloc] initWithUTF8String:inkind]; // expected-warning{{leak}}
732 …ionary *dict = [[NSMutableDictionary dictionaryWithCapacity:4] retain]; // expected-warning{{leak}}
744 …onary *dict = [[NSMutableDictionary dictionaryWithCapacity:4] retain]; // expected-warning{{leak}}
833 [[RDar6320065Subclass alloc] init]; // expected-warning {{leak}}
877 - (NSString*) NoCopyString { return [[NSString alloc] init]; } // expected-warning{{leak}}
878 - (NSString*) noCopyString { return [[NSString alloc] init]; } // expected-warning{{leak}}
882 [x NoCopyString]; // expected-warning{{leak}}
883 [x noCopyString]; // expected-warning{{leak}}
917 return [[NSString alloc] init]; // expected-warning{{leak}}
947 [view createSnapshotImageOfType:str]; // expected-warning{{leak}}
948 [renderer createSnapshotImageOfType:str]; // expected-warning{{leak}}
949 [context createCGImage:img fromRect:rect]; // expected-warning{{leak}}
950 [context createCGImage:img fromRect:rect format:form colorSpace:cs]; // expected-warning{{leak}}
959 [context createCGLayerWithSize:size info:d]; // expected-warning{{leak}}
968 IOBSDNameMatching(masterPort, options, bsdName); // expected-warning{{leak}}
972 IOServiceMatching(name); // expected-warning{{leak}}
976 IOServiceNameMatching(name); // expected-warning{{leak}}
991 IORegistryEntryIDMatching(entryID); // expected-warning{{leak}}
996 IOOpenFirmwarePathMatching(masterPort, options, path); // expected-warning{{leak}}
1057 NSNumber *number = [[NSNumber alloc] initWithInt:5]; // expected-warning{{leak}}
1082 CGGradientCreateWithColorComponents(CGColorSpaceCreateDeviceRGB(), // expected-warning{{leak}}
1104 …GColorSpaceCreateDeviceRGB(), components, locations, num_locations); // expected-warning 2 {{leak}}
1112 // thread in pthread_create marked as leak
1142 NSNumber *number = [[NSNumber alloc] initWithInt:5]; // expected-warning{{leak}}
1156 // <rdar://problem/7283567> False leak associated with call to
1256 // <rdar://problem/7358899> False leak associated with
1277 CGBitmapContextCreateWithData(data, width, height, bitsPerComponent, // expected-warning{{leak}}
1295 id y = [x new_stuff]; // expected-warning{{leak}}
1316 NSNumber *number = [[NSNumber alloc] initWithInt:5]; // expected-warning{{leak}}
1356 NSString *str = [X returnsAnOwnedString]; // expected-warning{{leak}}
1360 NSString *str = [X returnsAnOwnedCFString]; // expected-warning{{leak}}
1365 NSString *str2 = [X newStringNoAttr]; // expected-warning{{leak}}
1367 NSString *str4 = [[X newString_auto] retain]; // expected-warning {{leak}}
1371 TestOwnershipAttr *x = [TestOwnershipAttr alloc]; // expected-warning{{leak}}
1375 TestOwnershipAttr *x = [[TestOwnershipAttr alloc] pseudoInit]; // expected-warning{{leak}}
1379 TestOwnershipAttr *x = [[TestOwnershipAttr alloc] pseudoInit];// expected-warning{{leak}}
1411 return [NSString alloc]; // expected-warning {{Potential leak of an object}}
1432 return (NSDate*) returnsRetainedCFDate(); // No leak.
1436 return returnsRetainedCFDate(); // No leak.
1448 return (NSDate*) returnsRetainedCFDate(); // expected-warning{{leak}}
1452 return returnsRetainedCFDate(); // expected-warning{{leak}}
1464 // <rdar://problem/5905851> do not report a leak when post-dominated by a call
1473 … value = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &z); // expected-warning{{leak}}
1484 …f value = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &z); // expected-warning{{leak}}
1507 NSNumber *number = [[NSNumber alloc] initWithInt:5]; // expected-warning{{leak}}
1517 // Eventually this should be reported as a leak.
1528 NSNumber *number = [[NSNumber alloc] initWithInt:5]; // expected-warning {{leak}}
1586 … info = CFErrorCopyUserInfo(error_to_dump); // expected-warning{{Potential leak of an object}}
1636 return CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks); // expected-warning {{leak}}
1644 return CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks); // expected-warning {{leak}}
1665 return CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks); // expected-warning {{leak}}
1677 return CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks); // expected-warning {{leak}}
1698 CFTypeRef vals[] = { CFDateCreate(0, t) }; // expected-warning {{leak}}
1856 NSArray *a = [[NSArray alloc] initWithObjects:o, (void*)0]; // expected-warning {{leak}}
1865 NSArray *a2 = [[NSArray alloc] initWithArray:a1]; // expected-warning {{leak}}
1873 NSArray *a3 = [@[o] retain]; // expected-warning {{leak}}
1881 NSArray *a = [[NSArray alloc] initWithArray:@[o]]; // expected-warning {{leak}}
1890 NSDictionary *a = [@{o : o} retain]; // expected-warning {{leak}}
1899 id value = [@1 retain]; // expected-warning {{leak}}
1904 id value = [@(x) retain]; // expected-warning {{leak}}
1907 value = [@(y) retain]; // expected-warning {{leak}}
1975 MyCFType x = CreateMyCFType(); // expected-warning {{leak of an object stored into 'x'}}
2010 MyCFType obj = makeCustom(); // expected-warning {{leak of an object stored into 'obj'}}
2033 id x = [[MyObj12706177 alloc] initX]; //expected-warning {{Potential leak of an object}}