From 170ce85276e9bc98dd8e4ac34b3da18c80c2d968 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 7 Jan 2009 00:45:54 +0000 Subject: [PATCH] * value.c (set_internalvar): Use value_free, not xfree. --- gdb/ChangeLog | 4 ++++ gdb/value.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8c93b4aff69..3b97942431e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-01-06 Tom Tromey + + * value.c (set_internalvar): Use value_free, not xfree. + 2009-01-06 Jim Blandy Check return values of functions declared with warn_unused_result diff --git a/gdb/value.c b/gdb/value.c index 39df98ec918..1068f1d67d1 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); -- 2.30.2