summaryrefslogtreecommitdiffstats
path: root/gdb/cli/cli-setshow.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/cli/cli-setshow.c
parent6fa957a9b9408297206fb88e7c773931760f0528 (diff)
downloadppe42-binutils-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz
ppe42-binutils-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip
Replace free() with xfree().
Diffstat (limited to 'gdb/cli/cli-setshow.c')
-rw-r--r--gdb/cli/cli-setshow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c
index eebcf5ee8a..b6cbfed90f 100644
--- a/gdb/cli/cli-setshow.c
+++ b/gdb/cli/cli-setshow.c
@@ -146,7 +146,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
*q++ = '\0';
new = (char *) xrealloc (new, q - new);
if (*(char **) c->var != NULL)
- free (*(char **) c->var);
+ xfree (*(char **) c->var);
*(char **) c->var = new;
}
break;
@@ -154,14 +154,14 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
if (arg == NULL)
arg = "";
if (*(char **) c->var != NULL)
- free (*(char **) c->var);
+ xfree (*(char **) c->var);
*(char **) c->var = savestring (arg, strlen (arg));
break;
case var_filename:
if (arg == NULL)
error_no_arg ("filename to set it to.");
if (*(char **) c->var != NULL)
- free (*(char **) c->var);
+ xfree (*(char **) c->var);
*(char **) c->var = tilde_expand (arg);
break;
case var_boolean:
OpenPOWER on IntegriCloud