Closed
Bug 1391140
Opened 8 years ago
Closed 8 years ago
reference count leak in CERT_NewTempCertificate
Categories
(NSS :: Libraries, enhancement)
NSS
Libraries
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: chris.newman, Unassigned)
Details
The function CERT_NewTempCertificate in stanpcertdb.c has a reference count leak if the certificate is already cached.
If this call:
c = NSSCryptoContext_FindCertificateByEncodedCertificate(gCC,
&encoding);
returns a certificate, it will increment the reference count. A bit later in the code, there's a call to:
cc = STAN_GetCERTCertificateOrRelease(c);
which also increments the reference count. Moving the call to:
nssCertificate_Destroy(c);
so it's after the end of the conditional should resolve the reference count leak.
I'll try to produce a patch tomorrow.
| Reporter | ||
Comment 1•8 years ago
|
||
Sorry, I misdiagnosed the reference count leak I was tracking. Will open new correct bug if appropriate.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•