diff options
Diffstat (limited to 'gdb/c-typeprint.c')
-rw-r--r-- | gdb/c-typeprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 99dcba33805..566e68f1327 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -995,15 +995,15 @@ c_type_print_base (struct type *type, struct ui_file *stream, int show, strncpy (demangled_no_static, demangled_no_class, length); *(demangled_no_static + length) = '\0'; fputs_filtered (demangled_no_static, stream); - free (demangled_no_static); + xfree (demangled_no_static); } else fputs_filtered (demangled_no_class, stream); - free (demangled_name); + xfree (demangled_name); } if (TYPE_FN_FIELD_STUB (f, j)) - free (mangled_name); + xfree (mangled_name); fprintf_filtered (stream, ";\n"); } |