Closed
Bug 58792
Opened 25 years ago
Closed 24 years ago
malloc used instead of nsMemory::Alloc
Categories
(Core :: XPCOM, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: jkobal, Assigned: dougt)
Details
In xpcom/io/nsLocalFileWin.cpp, the Spawn method allocates memory using malloc,
but later frees it using nsMemory::Free(); all of the other allocations in that
file use nsMemory::Alloc().
The line:
my_argv = (char **)malloc(sizeof(char *) * (count + 2) );
Should be:
my_argv = (char **)nsMemory::Alloc(sizeof(char *) * (count + 2) );
Comment 2•24 years ago
|
||
-> reassign to default component owner
Is this already fixed ?
Assignee: warren → kandrot
QA Contact: rayw → scc
| Assignee | ||
Comment 4•24 years ago
|
||
Checking in nsLocalFileWin.cpp;
/cvsroot/mozilla/xpcom/io/nsLocalFileWin.cpp,v <-- nsLocalFileWin.cpp
new revision: 1.60; previous revision: 1.59
done
fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 5•24 years ago
|
||
Code is in - marking verified since Jeff isn't on our team anymore.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•