Bug 1017826 - prevent a potential memory leak in OCSPCache::Put. r=keeler

This commit is contained in:
Harsh Pathak 2014-06-16 20:27:00 +02:00
parent 3810169746
commit 85a5bc6e6a

View File

@ -286,6 +286,7 @@ OCSPCache::Put(const CERTCertificate* aCert,
SECStatus rv = newEntry->Init(aCert, aIssuerCert, aErrorCode, aThisUpdate,
aValidThrough);
if (rv != SECSuccess) {
delete newEntry;
return rv;
}
mEntries.append(newEntry);