aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-01-07 00:45:54 +0000
committerTom Tromey <tromey@redhat.com>2009-01-07 00:45:54 +0000
commit170ce85276e9bc98dd8e4ac34b3da18c80c2d968 (patch)
tree08abc8ebb4242e95e7b50b7ecddf894ffbc06476 /gdb/value.c
parent4e6d13a078772b6027840799e09c6453d84f166a (diff)
downloadgdb-170ce85276e9bc98dd8e4ac34b3da18c80c2d968.zip
gdb-170ce85276e9bc98dd8e4ac34b3da18c80c2d968.tar.gz
gdb-170ce85276e9bc98dd8e4ac34b3da18c80c2d968.tar.bz2
* value.c (set_internalvar): Use value_free, not xfree.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 39df98e..1068f1d 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -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);