mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 557888 - nsCertAlreadyExists always leaks unused arena, r=kaie
--HG-- extra : rebase_source : 33db7306106d05a695da3928648f4540fb673eb0
This commit is contained in:
parent
b92bf2348e
commit
5273a85a73
@ -2214,15 +2214,9 @@ static PRBool
|
||||
nsCertAlreadyExists(SECItem *derCert)
|
||||
{
|
||||
CERTCertDBHandle *handle = CERT_GetDefaultCertDB();
|
||||
PRArenaPool *arena;
|
||||
CERTCertificate *cert;
|
||||
PRBool retVal = PR_FALSE;
|
||||
|
||||
arena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE);
|
||||
NS_ASSERTION(arena, "Couldn't allocate an arena!");
|
||||
if (!arena)
|
||||
return PR_FALSE; //What else could we return?
|
||||
|
||||
cert = CERT_FindCertByDERCert(handle, derCert);
|
||||
if (cert) {
|
||||
if (cert->isperm && !cert->nickname && !cert->emailAddr) {
|
||||
|
Loading…
Reference in New Issue
Block a user