aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-disas.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mi/mi-cmd-disas.c')
-rw-r--r--gdb/mi/mi-cmd-disas.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c
index bbd1c00..accddd5 100644
--- a/gdb/mi/mi-cmd-disas.c
+++ b/gdb/mi/mi-cmd-disas.c
@@ -428,9 +428,9 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
ui_out_field_int (uiout, "offset", offset);
}
if (filename != NULL)
- free (filename);
+ xfree (filename);
if (name != NULL)
- free (name);
+ xfree (name);
ui_file_rewind (stb->stream);
pc += (*tm_print_insn) (pc, &di);
@@ -476,9 +476,9 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
ui_out_field_int (uiout, "offset", offset);
}
if (filename != NULL)
- free (filename);
+ xfree (filename);
if (name != NULL)
- free (name);
+ xfree (name);
ui_file_rewind (stb->stream);
pc += (*tm_print_insn) (pc, &di);