Bug 621848 - memory leak in nsNSSComponent::IdentityInfoInit; r=mayhemer a=johnath

This commit is contained in:
Boying Lu 2011-01-17 12:26:53 -05:00
parent 912344b34c
commit cfbf9938c5

View File

@ -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;