Vote count:
0
Leak instruments shows number of leaked NSCFData
objects and stack trace apparently contains the following method at the end of the boundary of my app methods.
NSData* SAKeychainGetValue(NSString *key) { NSMutableDictionary *searchDictionary = SAGetKeychainSearchDictionary(key); [searchDictionary setObject:(__bridge id)kSecMatchLimitOne forKey:(__bridge id)kSecMatchLimit]; [searchDictionary setObject:(id)kCFBooleanTrue forKey:(__bridge id)kSecReturnData];
CFDataRef value = nil;
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)searchDictionary, (CFTypeRef *)&value);
if (status != errSecSuccess && status != errSecItemNotFound)
{
NSLog(@"failed to get key %@ with error %ld.", key, (long)status);
}
return (__bridge NSData*)value;
}
But I can't see what is wrong with this method to leak.
asked 39 secs ago
Aucun commentaire:
Enregistrer un commentaire