aboutsummaryrefslogtreecommitdiff
path: root/gdb/demangle.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
committerKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
commitb8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch)
tree1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/demangle.c
parent6fa957a9b9408297206fb88e7c773931760f0528 (diff)
downloadfsf-binutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip
fsf-binutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz
fsf-binutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2
Replace free() with xfree().
Diffstat (limited to 'gdb/demangle.c')
-rw-r--r--gdb/demangle.c4
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);