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/demangle.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2 |
Replace free() with xfree().
Diffstat (limited to 'gdb/demangle.c')
-rw-r--r-- | gdb/demangle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/demangle.c b/gdb/demangle.c index 23ebcde..2c59dec 100644 --- a/gdb/demangle.c +++ b/gdb/demangle.c @@ -109,7 +109,7 @@ set_demangling_command (char *ignore, int from_tty, struct cmd_list_element *c) dem->demangling_style_doc); if (dem->demangling_style == current_demangling_style) { - free (current_demangling_style_string); + xfree (current_demangling_style_string); current_demangling_style_string = savestring (dem->demangling_style_name, strlen (dem->demangling_style_name)); @@ -138,7 +138,7 @@ set_demangling_style (char *style) { if (current_demangling_style_string != NULL) { - free (current_demangling_style_string); + xfree (current_demangling_style_string); } current_demangling_style_string = savestring (style, strlen (style)); set_demangling_command ((char *) NULL, 0, (struct cmd_list_element *) NULL); |