summaryrefslogtreecommitdiff
path: root/gdb/remote-adapt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-adapt.c')
-rw-r--r--gdb/remote-adapt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote-adapt.c b/gdb/remote-adapt.c
index 6e97c1983a0..f370d3850ea 100644
--- a/gdb/remote-adapt.c
+++ b/gdb/remote-adapt.c
@@ -610,7 +610,7 @@ the baud rate, and the name of the program to run on the remote system.");
/*EMPTY */ ;
if (prog_name != NULL)
- free (prog_name);
+ xfree (prog_name);
prog_name = savestring (p, strlen (p));
adapt_close (0);