我在以下代码中有内存泄漏。 certificateData和passphrase是NSObject,因此它们属于ARC。我在使用该函数后立即释放keyRef。
CFArrayRef keyRef;
OSStatus status = SecPKCS12Import((__bridge CFDataRef)certificateData, (__bridge CFDictionaryRef)@{(__bridge NSString *)kSecImportExportPassphrase: passphrase}, &keyRef);
CFRelease(keyRef);
泄漏仪检测到以下泄漏:(并且在我评论前一行时不会检测到)
Leaked Object # Address Size Responsible Library Responsible Frame
Malloc 96 Bytes 1 0x7f8458def240 96 Bytes Security DefaultAllocator::malloc(unsigned long)
我错过了什么吗?