diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
commit | 7fd5097f9fb26871e9f0b329f1cf5554495ed589 (patch) | |
tree | 20b4de6e7953169d2402aff4e158b475b5726e67 /gdb/procfs.c | |
parent | eac388f33554805a5765a2836926311f77cd8d79 (diff) | |
download | gdb-7fd5097f9fb26871e9f0b329f1cf5554495ed589.tar.gz |
Replace free() with xfree().
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 5675edab480..10f2eb94ae1 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -631,7 +631,7 @@ destroy_one_procinfo (procinfo **list, procinfo *pi) close_procinfo_files (pi); /* Step three: free the memory. */ - free (pi); + xfree (pi); } static void @@ -2879,7 +2879,7 @@ proc_update_threads (procinfo *pi) malloc (sizeof (gdb_prstatus_t) * (nlwp + 1))) == 0) perror_with_name ("procfs: malloc failed in update_threads"); - old_chain = make_cleanup (free, prstatus); + old_chain = make_cleanup (xfree, prstatus); if (ioctl (pi->ctl_fd, PIOCLSTATUS, prstatus) < 0) proc_error (pi, "update_threads (PIOCLSTATUS)", __LINE__); |