diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
commit | b8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch) | |
tree | 1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/gdbtypes.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | fsf-binutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip fsf-binutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz fsf-binutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2 |
Replace free() with xfree().
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index c54d472..26d9059 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1352,7 +1352,7 @@ cfront_mangle_name (struct type *type, int i, int j) printf ("add_mangled_type: %s\n", extras.str); /* FIXME */ arm_mangled_name = malloc (strlen (mangled_name) + extras.len); sprintf (arm_mangled_name, "%s%s", mangled_name, extras.str); - free (mangled_name); + xfree (mangled_name); mangled_name = arm_mangled_name; } } @@ -1484,7 +1484,7 @@ check_stub_method (struct type *type, int method_id, int signature_id) argtypes[argcount] = NULL; /* Ellist terminator */ } - free (demangled_name); + xfree (demangled_name); f = TYPE_FN_FIELDLIST1 (type, method_id); @@ -1835,7 +1835,7 @@ virtual_base_list (struct type *dclass) while (tmp_vbase) { tmp_vbase = tmp_vbase->next; - free (tmp_vbase_2); + xfree (tmp_vbase_2); tmp_vbase_2 = tmp_vbase; } |