BLIP/BLIPTest.m
changeset 54 6d1392a3e0a6
parent 35 a9dd5ac5ff11
child 63 5e4855a592ee
     1.1 --- a/BLIP/BLIPTest.m	Mon May 04 23:21:26 2009 -0700
     1.2 +++ b/BLIP/BLIPTest.m	Tue Jun 23 13:52:28 2009 -0700
     1.3 @@ -50,8 +50,10 @@
     1.4      SecIdentitySearchRef search;
     1.5      SecIdentitySearchCreate(kc, CSSM_KEYUSE_ANY, &search);
     1.6      SecIdentityRef identity;
     1.7 -    while (SecIdentitySearchCopyNext(search, &identity) == noErr)
     1.8 +    while (SecIdentitySearchCopyNext(search, &identity) == noErr) {
     1.9          [identities addObject: (id)identity];
    1.10 +		CFRelease( identity );
    1.11 +	}
    1.12      CFRelease(search);
    1.13      Log(@"Found %u identities -- prompting '%@'", identities.count, prompt);
    1.14      if (identities.count > 0) {