Closed
Bug 485732
Opened 17 years ago
Closed 11 years ago
nsslowcert_OpenCertDB leaks a PRMonitor on failure
Categories
(NSS :: Libraries, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
3.16.2
People
(Reporter: nelson, Assigned: Cykesiopka)
References
Details
(Keywords: memory-leak, Whiteboard: FIPS)
Attachments
(1 file, 1 obsolete file)
|
882 bytes,
patch
|
rrelyea
:
review+
|
Details | Diff | Splinter Review |
nsslowcert_OpenCertDB allocates a PRMonitor, and then calls
nsslowcert_OpenPermCertDB. If that call fails, nsslowcert_OpenCertDB
returns without destroying the PRMonitor. This generally happens during
a call to NSS_Init, and the failure causes NSS_Init to fail, so the
application does not call NSS_Shutdown. Consequently, the PRMonitor is
leaked. See bug 447845 for the leak stack.
This has raised the questions:
When NSS_Init fails, should an application try to call NSS_Shutdown anyway?
Would doing so fix this leak?
| Reporter | ||
Updated•17 years ago
|
Priority: -- → P3
Whiteboard: FIPS
| Reporter | ||
Updated•15 years ago
|
Assignee: nobody → rrelyea
| Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8428438 -
Flags: review?(emaldona)
Comment 3•11 years ago
|
||
Comment on attachment 8428438 [details] [diff] [review]
bug485732_v1.patch
Review of attachment 8428438 [details] [diff] [review]:
-----------------------------------------------------------------
::: lib/softoken/legacydb/pcertdb.c
@@ +4597,5 @@
> goto loser;
> }
>
> return (SECSuccess);
>
Nitpick: whitespace
Attachment #8428438 -
Flags: review?(emaldona) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
+ Fix whitespace
Thanks for the review!
Assignee: rrelyea → cykesiopka.bmo
Attachment #8428438 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 5•11 years ago
|
||
Comment on attachment 8430457 [details] [diff] [review]
bug485732_v2.patch
Review of attachment 8430457 [details] [diff] [review]:
-----------------------------------------------------------------
Looks like a new version of the patch. It now has 2 reviews (elio and mine).
Attachment #8430457 -
Flags: review+
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 3.16.2
You need to log in
before you can comment on or make changes to this bug.
Description
•