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/linespec.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2 |
Replace free() with xfree().
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r-- | gdb/linespec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c index d6c3302..ae0b51a 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -163,7 +163,7 @@ find_methods (struct type *t, char *name, struct symbol **sym_arr) field_counter); phys_name = alloca (strlen (tmp_name) + 1); strcpy (phys_name, tmp_name); - free (tmp_name); + xfree (tmp_name); } else phys_name = TYPE_FN_FIELD_PHYSNAME (f, field_counter); @@ -306,12 +306,12 @@ decode_line_2 (struct symbol *sym_arr[], int nelts, int funfirstline, alloca (nelts * sizeof (struct symtab_and_line)); return_values.sals = (struct symtab_and_line *) xmalloc (nelts * sizeof (struct symtab_and_line)); - old_chain = make_cleanup (free, return_values.sals); + old_chain = make_cleanup (xfree, return_values.sals); if (canonical) { canonical_arr = (char **) xmalloc (nelts * sizeof (char *)); - make_cleanup (free, canonical_arr); + make_cleanup (xfree, canonical_arr); memset (canonical_arr, 0, nelts * sizeof (char *)); *canonical = canonical_arr; } @@ -392,7 +392,7 @@ decode_line_2 (struct symbol *sym_arr[], int nelts, int funfirstline, if (canonical_arr) { symname = SYMBOL_NAME (sym_arr[num]); - make_cleanup (free, symname); + make_cleanup (xfree, symname); canonical_arr[i] = savestring (symname, strlen (symname)); } return_values.sals[i++] = values.sals[num]; |