Closed Bug 76970 Opened 24 years ago Closed 23 years ago

[MLK] Leaking UNICODE string in nsNSSComponent::GetPIPNSSBundleString

Categories

(Core Graveyard :: Security: UI, defect)

1.0 Branch
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 82359
psm2.0

People

(Reporter: beard, Assigned: javi)

References

()

Details

(Keywords: memory-leak)

Attachments

(1 file)

Leaking UNICODE strings. The call to mPIPNSSBundle->GetStringFromName(name, & ptrv) returns a newly allocated UNICODE string, which you assign to outString on the next line. But this assignment makes another copy, and you return immediately without freeing ptrv. Trivial leak.
Reassigning to apparent author of code.
Assignee: ddrinan → javi
Keywords: mlk
Oops, wrong component, changing component to NSS.
Component: Client Library → Libraries
Product: PSM → NSS
Version: 2.0 → 3.0
Summary: [MLK] → [MLK] Leaking UNICODE string in nsNSSComponent::GetPIPNSSBundleString
Component: Libraries → Client Library
Product: NSS → PSM
Target Milestone: --- → 2.0
Version: 3.0 → 2.0
A fix for this is included in the patch for Bug 78012 and will go in whenever that lands.
Depends on: 78012
patch for bug 78012 has landed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified per javi's comment.
Status: RESOLVED → VERIFIED
Sorry, this isn't fixed as of version 1.42 of the file. I can see the leak still by inspection. Updating the URL field of the bug to the latest location of the offending line of code.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
To verify these bug fixes, one really needs to use a memory leak tool, such as purify, or the Boehm GC leak detector.
dup *** This bug has been marked as a duplicate of 82359 ***
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → DUPLICATE
You marked this as a duplicate of a NEWER bug because resolving that bug will fix this one? I perused 82359 but didn't see any obvious connection.
Having read the bug more closely, I see the connection. Fine, keep my bug closed.
Verified dupe per beard's comment.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm2.0 → 1.0 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: