summaryrefslogtreecommitdiff
path: root/gdb/event-loop.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
committerKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
commit7fd5097f9fb26871e9f0b329f1cf5554495ed589 (patch)
tree20b4de6e7953169d2402aff4e158b475b5726e67 /gdb/event-loop.c
parenteac388f33554805a5765a2836926311f77cd8d79 (diff)
downloadgdb-7fd5097f9fb26871e9f0b329f1cf5554495ed589.tar.gz
Replace free() with xfree().
Diffstat (limited to 'gdb/event-loop.c')
-rw-r--r--gdb/event-loop.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/event-loop.c b/gdb/event-loop.c
index f46fe4df379..ad7ba66f87f 100644
--- a/gdb/event-loop.c
+++ b/gdb/event-loop.c
@@ -377,7 +377,7 @@ process_event (void)
if (event_ptr->next_event == NULL)
event_queue.last_event = prev_ptr;
}
- free ((char *) event_ptr);
+ xfree (event_ptr);
/* Now call the procedure associated with the event. */
(*proc) (fd);
@@ -620,7 +620,7 @@ delete_file_handler (int fd)
j++;
}
}
- free (gdb_notifier.poll_fds);
+ xfree (gdb_notifier.poll_fds);
gdb_notifier.poll_fds = new_poll_fds;
gdb_notifier.num_fds--;
#else
@@ -668,7 +668,7 @@ delete_file_handler (int fd)
;
prev_ptr->next_file = file_ptr->next_file;
}
- free ((char *) file_ptr);
+ xfree (file_ptr);
}
/* Handle the given event by calling the procedure associated to the
@@ -973,7 +973,7 @@ delete_async_signal_handler (async_signal_handler ** async_handler_ptr)
if (sighandler_list.last_handler == (*async_handler_ptr))
sighandler_list.last_handler = prev_ptr;
}
- free ((char *) (*async_handler_ptr));
+ xfree ((*async_handler_ptr));
(*async_handler_ptr) = NULL;
}
@@ -1080,7 +1080,7 @@ delete_timer (int id)
;
prev_timer->next = timer_ptr->next;
}
- free ((char *) timer_ptr);
+ xfree (timer_ptr);
gdb_notifier.timeout_valid = 0;
}
@@ -1111,7 +1111,7 @@ handle_timer_event (int dummy)
timer_ptr = timer_ptr->next;
/* Call the procedure associated with that timer. */
(*saved_timer->proc) (saved_timer->client_data);
- free (saved_timer);
+ xfree (saved_timer);
}
gdb_notifier.timeout_valid = 0;