* value.c (set_internalvar): Use value_free, not xfree.

This commit is contained in:
Tom Tromey 2009-01-07 00:45:54 +00:00
parent 4e6d13a078
commit 170ce85276
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-01-06 Tom Tromey <tromey@redhat.com>
* value.c (set_internalvar): Use value_free, not xfree.
2009-01-06 Jim Blandy <jimb@red-bean.com>
Check return values of functions declared with warn_unused_result

View File

@ -931,7 +931,7 @@ set_internalvar (struct internalvar *var, struct value *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. */
xfree (var->value);
value_free (var->value);
var->value = newval;
var->endian = gdbarch_byte_order (current_gdbarch);
release_value (newval);