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 429fd8834c
commit ca13d59d69

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