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/values.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2 |
Replace free() with xfree().
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/values.c b/gdb/values.c index bd4d1af..f17373d 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -331,9 +331,9 @@ clear_value_history (void) { for (i = 0; i < VALUE_HISTORY_CHUNK; i++) if ((val = value_history_chain->values[i]) != NULL) - free ((PTR) val); + xfree (val); next = value_history_chain->next; - free ((PTR) value_history_chain); + xfree (value_history_chain); value_history_chain = next; } value_history_count = 0; @@ -475,7 +475,7 @@ set_internalvar (struct internalvar *var, value_ptr val) something in the value chain (i.e., before release_value is called), because after the error free_all_values will get called before long. */ - free ((PTR) var->value); + xfree (var->value); var->value = newval; release_value (newval); /* End code which must not call error(). */ @@ -499,9 +499,9 @@ clear_internalvars (void) { var = internalvars; internalvars = var->next; - free ((PTR) var->name); - free ((PTR) var->value); - free ((PTR) var); + xfree (var->name); + xfree (var->value); + xfree (var); } } |