diff options
author | Aidan Skinner <aidan@velvet.net> | 2002-07-13 12:25:16 +0000 |
---|---|---|
committer | Aidan Skinner <aidan@velvet.net> | 2002-07-13 12:25:16 +0000 |
commit | aacb1f0a62ea93e80775f62c8c7206e444505e5d (patch) | |
tree | 9fe48c5f8accab98e03ce6fa53c0069c1aeb824b /gdb/ada-tasks.c | |
parent | c11d79f2b1639b60477fcb1bffb801172c74afc8 (diff) | |
download | gdb-aacb1f0a62ea93e80775f62c8c7206e444505e5d.zip gdb-aacb1f0a62ea93e80775f62c8c7206e444505e5d.tar.gz gdb-aacb1f0a62ea93e80775f62c8c7206e444505e5d.tar.bz2 |
* ada-tasks.c (add_task_entry): replace calls to
malloc() with xmalloc
* ada-tasks.c (init_task_list): replace calls to free with xfree()
* ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
ada_finish_decode_line_1, all_sals_for_line
ada_breakpoint_rewrite): replace calls to free() with xfree()
Diffstat (limited to 'gdb/ada-tasks.c')
-rw-r--r-- | gdb/ada-tasks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c index 23dc105..426fdff 100644 --- a/gdb/ada-tasks.c +++ b/gdb/ada-tasks.c @@ -164,7 +164,7 @@ static int add_task_entry (p_task_id, index) struct task_entry *pt; highest_task_num++; - new_task_entry = malloc (sizeof (struct task_entry)); + new_task_entry = xmalloc (sizeof (struct task_entry)); new_task_entry->task_num = highest_task_num; new_task_entry->task_id = p_task_id; new_task_entry->known_tasks_index = index; @@ -236,7 +236,7 @@ void init_task_list () { old_pt = pt; pt = pt->next_task; - free (old_pt); + xfree (old_pt); }; task_list = NULL; highest_task_num = 0; |