summaryrefslogtreecommitdiff
path: root/gdb/ada-tasks.c
diff options
context:
space:
mode:
authorAidan Skinner <aidan@velvet.net>2002-07-13 12:25:16 +0000
committerAidan Skinner <aidan@velvet.net>2002-07-13 12:25:16 +0000
commit82ba3bd9dc748e507a09b81ed458833e5a463545 (patch)
tree93305000383c4f3db17148131e8596c8512ca2b7 /gdb/ada-tasks.c
parent9811bfe011285cc8eecf8969e23284e14f5517bb (diff)
downloadgdb-82ba3bd9dc748e507a09b81ed458833e5a463545.tar.gz
* 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index 6d715944346..e3a135151d6 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -4,7 +4,7 @@
.
This file is part of GDB.
- [$Id: ada-tasks.c,v 1.1.2.13 2001/11/05 19:01:03 brobecke Exp $]
+ [$Id: ada-tasks.c,v 1.1 2002/06/04 15:28:48 aidan Exp $]
Authors: Roch-Alexandre Nomine Beguin, Arnaud Charlet <charlet@gnat.com>
This program is free software; you can redistribute it and/or modify
@@ -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;