[Issue #1099] Removing if statements before CFRelease calls
This commit is contained in:
parent
251ce98caa
commit
0fd49b9964
1 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue