[Issue #1099] Removing if statements before CFRelease calls

This commit is contained in:
Mattt Thompson 2013-07-17 10:19:23 -07:00
parent 251ce98caa
commit 0fd49b9964

View file

@ -246,10 +246,10 @@ static BOOL AFSecKeyIsEqualToKey(SecKeyRef key1, SecKeyRef key2) {
} }
} }
if (allowedTrust) CFRelease(allowedTrust); CFRelease(allowedTrust);
if (policy) CFRelease(policy); CFRelease(policy);
if (certificates) CFRelease(certificates); CFRelease(certificates);
if (allowedCertificate) CFRelease(allowedCertificate); CFRelease(allowedCertificate);
} }
_pinnedPublicKeys = [[NSArray alloc] initWithArray:publicKeys]; _pinnedPublicKeys = [[NSArray alloc] initWithArray:publicKeys];
@ -607,8 +607,8 @@ willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challe
} }
} }
if (trust) CFRelease(trust); CFRelease(trust);
if (certificates) CFRelease(certificates); CFRelease(certificates);
} }
} }