diff -r a9dd5ac5ff11 -r 8713f2d6a4c5 BLIP/BLIPTest.m --- a/BLIP/BLIPTest.m Mon May 04 23:21:26 2009 -0700 +++ b/BLIP/BLIPTest.m Tue Jul 21 15:06:15 2009 -0700 @@ -50,8 +50,10 @@ SecIdentitySearchRef search; SecIdentitySearchCreate(kc, CSSM_KEYUSE_ANY, &search); SecIdentityRef identity; - while (SecIdentitySearchCopyNext(search, &identity) == noErr) + while (SecIdentitySearchCopyNext(search, &identity) == noErr) { [identities addObject: (id)identity]; + CFRelease( identity ); + } CFRelease(search); Log(@"Found %u identities -- prompting '%@'", identities.count, prompt); if (identities.count > 0) {