diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/varobj.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 821a523..a0cace5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com> + * varobj.c (free_variable): Call value_free. + +2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com> + PR gdb/9873: * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'. Move the variable `macinfo_type' out of the loop. Create a new diff --git a/gdb/varobj.c b/gdb/varobj.c index 2ec6d90..0147ecb 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1512,6 +1512,8 @@ new_root_variable (void) static void free_variable (struct varobj *var) { + value_free (var->value); + /* Free the expression if this is a root variable. */ if (is_root_p (var)) { |