mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 621848 - memory leak in nsNSSComponent::IdentityInfoInit; r=mayhemer a=johnath
This commit is contained in:
parent
912344b34c
commit
cfbf9938c5
@ -652,6 +652,9 @@ loadTestEVInfos()
|
||||
temp_ev->cert = CERT_FindCertByIssuerAndSN(nsnull, &ias);
|
||||
NS_ASSERTION(temp_ev->cert, "Could not find EV root in NSS storage");
|
||||
|
||||
SECITEM_FreeItem(&ias.derIssuer, PR_FALSE);
|
||||
SECITEM_FreeItem(&ias.serialNumber, PR_FALSE);
|
||||
|
||||
if (!temp_ev->cert)
|
||||
return;
|
||||
|
||||
@ -857,6 +860,9 @@ nsNSSComponent::IdentityInfoInit()
|
||||
entry.cert = CERT_FindCertByIssuerAndSN(nsnull, &ias);
|
||||
NS_ASSERTION(entry.cert, "Could not find EV root in NSS storage");
|
||||
|
||||
SECITEM_FreeItem(&ias.derIssuer, PR_FALSE);
|
||||
SECITEM_FreeItem(&ias.serialNumber, PR_FALSE);
|
||||
|
||||
if (!entry.cert)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user