summaryrefslogtreecommitdiffstats
path: root/gdb/serial.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
commitb8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch)
tree1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/serial.c
parent6fa957a9b9408297206fb88e7c773931760f0528 (diff)
downloadppe42-binutils-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz
ppe42-binutils-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip
Replace free() with xfree().
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index d78fb40c11..01c15c6da8 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -209,7 +209,7 @@ serial_open (const char *name)
if (scb->ops->open (scb, open_name))
{
- free (scb);
+ xfree (scb);
return NULL;
}
@@ -310,7 +310,7 @@ do_serial_close (serial_t scb, int really_close)
scb->ops->close (scb);
if (scb->name)
- free (scb->name);
+ xfree (scb->name);
if (scb_base == scb)
scb_base = scb_base->next;
@@ -324,7 +324,7 @@ do_serial_close (serial_t scb, int really_close)
break;
}
- free (scb);
+ xfree (scb);
}
void
@@ -397,7 +397,7 @@ serial_printf (serial_t desc, const char *format,...)
vasprintf (&buf, format, args);
SERIAL_WRITE (desc, buf, strlen (buf));
- free (buf);
+ xfree (buf);
va_end (args);
}
@@ -551,7 +551,7 @@ cleanup_tty (serial_ttystate ttystate)
{
printf_unfiltered ("\r\n[Exiting connect mode]\r\n");
SERIAL_SET_TTY_STATE (tty_desc, ttystate);
- free (ttystate);
+ xfree (ttystate);
SERIAL_CLOSE (tty_desc);
}
OpenPOWER on IntegriCloud