Closed Bug 58792 Opened 25 years ago Closed 24 years ago

malloc used instead of nsMemory::Alloc

Categories

(Core :: XPCOM, defect, P3)

x86
Windows NT
defect

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) );
Transferring to default XPCOM owner.
Assignee: rayw → warren
-> reassign to default component owner Is this already fixed ?
Assignee: warren → kandrot
QA Contact: rayw → scc
reassign all kandrot xpcom bug.
Assignee: kandrot → dougt
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
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.