All the calls to GetPK11String() in this method allocate strings. The call to PK11_ConfigurePKCS11() at the bottom of the method evidently copies all of those strings, thus all of the allocated strings leak. The URL above points to just one of the lines where a leaked string is allocated.
Component: Libraries → Client Library
Product: NSS → PSM
Target Milestone: --- → 2.0
Version: 3.0 → 2.0
This is a one time leak caused by NSS not freeing the strings passed in for intializing the token names. A possible work around is to declare our own global static char arrays and populate and pass it to the PK11 libraries. This is a one time less than 300 bytes.
Priority: -- → P3
Mass reassigning target to 2.1
Target Milestone: 2.0 → 2.1
Moving all P3 and P4 bugs targetted to 2.1 to future.
Target Milestone: 2.1 → Future
Changed the QA contact to Bishakha.
QA Contact: sonja.mirtitsch → bishakhabanerjee
This is not a PSM bug. PSM by itself is not leaking (at least it does no longer leak, if it ever leaked in the past). PSM passes internal buffers of automatic strings to PK11_ConfigurePKCS11. It will free the temporaray strings after the call. If you think NSS is leaking and should free its strings on shutdown, please reopen and change this into a NSS bug.
Status: NEW → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → WONTFIX
I think this was fixed in another bug (perhaps even one filed after this one).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.