summaryrefslogtreecommitdiff
path: root/gdb/remote-rdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-rdp.c')
-rw-r--r--gdb/remote-rdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote-rdp.c b/gdb/remote-rdp.c
index 767e0ee4e6f..223e2ef5f2f 100644
--- a/gdb/remote-rdp.c
+++ b/gdb/remote-rdp.c
@@ -696,7 +696,7 @@ rdp_set_command_line (char *command, char *args)
*/
if (commandline != NULL)
- free (commandline);
+ xfree (commandline);
commandline = malloc (strlen (command) + strlen (args) + 2);
if (commandline != NULL)