[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);
if (policy) CFRelease(policy);
if (certificates) CFRelease(certificates);
if (allowedCertificate) CFRelease(allowedCertificate);
CFRelease(allowedTrust);
CFRelease(policy);
CFRelease(certificates);
CFRelease(allowedCertificate);
}
_pinnedPublicKeys = [[NSArray alloc] initWithArray:publicKeys];
@ -607,8 +607,8 @@ willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challe
}
}
if (trust) CFRelease(trust);
if (certificates) CFRelease(certificates);
CFRelease(trust);
CFRelease(certificates);
}
}