mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1017826 - prevent a potential memory leak in OCSPCache::Put. r=keeler
This commit is contained in:
parent
3810169746
commit
85a5bc6e6a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user