* strace.cc (add_child): Use calloc since new requires working libstdc++.a.
(fhandler_disk_file::fstat): Ditto for delete/free.
This commit is contained in:
parent
2701126aaf
commit
cf737d6b32
@ -1,3 +1,9 @@
|
|||||||
|
2002-05-18 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* strace.cc (add_child): Use calloc since new requires working
|
||||||
|
libstdc++.a.
|
||||||
|
(fhandler_disk_file::fstat): Ditto for delete/free.
|
||||||
|
|
||||||
2002-05-15 Mark Blackburn <marklist@fangorn.ca>
|
2002-05-15 Mark Blackburn <marklist@fangorn.ca>
|
||||||
|
|
||||||
* cygpath.cc (get_short_paths): Fix more error checking.
|
* cygpath.cc (get_short_paths): Fix more error checking.
|
||||||
|
@ -114,7 +114,7 @@ static void
|
|||||||
add_child (DWORD id, HANDLE hproc)
|
add_child (DWORD id, HANDLE hproc)
|
||||||
{
|
{
|
||||||
child_list *c = children.next;
|
child_list *c = children.next;
|
||||||
children.next = new (child_list);
|
children.next = (child_list *) calloc (1, sizeof (child_list));
|
||||||
children.next->next = c;
|
children.next->next = c;
|
||||||
lastid = children.next->id = id;
|
lastid = children.next->id = id;
|
||||||
lasth = children.next->hproc = hproc;
|
lasth = children.next->hproc = hproc;
|
||||||
@ -142,7 +142,7 @@ remove_child (DWORD id)
|
|||||||
{
|
{
|
||||||
child_list *c1 = c->next;
|
child_list *c1 = c->next;
|
||||||
c->next = c1->next;
|
c->next = c1->next;
|
||||||
delete c1;
|
free (c1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user