summaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 65621e3e0d2..c57bf8218ab 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1438,8 +1438,8 @@ display_command (char *exp, int from_tty)
static void
free_display (struct display *d)
{
- free ((PTR) d->exp);
- free ((PTR) d);
+ xfree (d->exp);
+ xfree (d);
}
/* Clear out the display_chain.
@@ -1453,9 +1453,9 @@ clear_displays (void)
while ((d = display_chain) != NULL)
{
- free ((PTR) d->exp);
+ xfree (d->exp);
display_chain = d->next;
- free ((PTR) d);
+ xfree (d);
}
}