aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
parent4e6d13a078772b6027840799e09c6453d84f166a (diff)
downloadbinutils-170ce85276e9bc98dd8e4ac34b3da18c80c2d968.zip
binutils-170ce85276e9bc98dd8e4ac34b3da18c80c2d968.tar.gz
binutils-170ce85276e9bc98dd8e4ac34b3da18c80c2d968.tar.bz2
* value.c (set_internalvar): Use value_free, not xfree.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/value.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8c93b4a..3b97942 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
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);