Closed Bug 28818 Opened 25 years ago Closed 24 years ago

MLK: profile migration, node->GetNameUTF8(&profile)

Categories

(Core Graveyard :: Profile: BackEnd, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bruce, Assigned: gayatrib)

Details

(Keywords: memory-leak)

From beard's leak data.
/mozilla/profile/src/nsProfileAccess.cpp:
 850              char *profile = nsnull;
 851         rv = node->GetNameUTF8(&profile);

that isn't freed at all.  It can be freed anywhere after line 891.  It also 
needs to be freed for the return statements at lines 859, 867, 880, and 902.
I'd have done a patch and tested it, but I'm on Solaris and Linux and this bug 
doesn't exist there.
I'm reasigning to Gayatri, she is re-writing this section to use PRUnichar for 
profile names. As part of my first-pass code review of that section I've 
suggested she switch to nsXPIDLString where appropriate.
Assignee: selmer → gayatrib
Working on fixing this and similar leaks. Should be ready with the fixes in the 
next few days.
Status: NEW → ASSIGNED
not serious enough to mark beta1.
Target Milestone: M15
checked in fix.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Congratulations!  So far, your changes look good under Purify and I'm not 
seeing the memory leaks. 

Bruce
Status: RESOLVED → VERIFIED
(Did I say that on some other bug?)
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.