diff options
author | Christopher Faylor <me@cgf.cx> | 2002-05-18 21:05:10 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-05-18 21:05:10 +0000 |
commit | cf737d6b3266d939179812dcc474f52b8de9096d (patch) | |
tree | ba8d538943c084ffaa3f57a5c8c72a338eda2c2d /winsup/utils/strace.cc | |
parent | 2701126aaf27767026307246d0085d4c2e00138d (diff) | |
download | newlib-cf737d6b3266d939179812dcc474f52b8de9096d.zip newlib-cf737d6b3266d939179812dcc474f52b8de9096d.tar.gz newlib-cf737d6b3266d939179812dcc474f52b8de9096d.tar.bz2 |
* strace.cc (add_child): Use calloc since new requires working libstdc++.a.
(fhandler_disk_file::fstat): Ditto for delete/free.
Diffstat (limited to 'winsup/utils/strace.cc')
-rw-r--r-- | winsup/utils/strace.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index d29d3e4..6bb145c 100644 --- a/winsup/utils/strace.cc +++ b/winsup/utils/strace.cc @@ -114,7 +114,7 @@ static void add_child (DWORD id, HANDLE hproc) { child_list *c = children.next; - children.next = new (child_list); + children.next = (child_list *) calloc (1, sizeof (child_list)); children.next->next = c; lastid = children.next->id = id; lasth = children.next->hproc = hproc; @@ -142,7 +142,7 @@ remove_child (DWORD id) { child_list *c1 = c->next; c->next = c1->next; - delete c1; + free (c1); return; } |