mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-05 12:53:16 +08:00
* value.c (set_internalvar): Use value_free, not xfree.
This commit is contained in:
parent
4e6d13a078
commit
170ce85276
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user