* varobj.c (free_variable): Call value_free.

This commit is contained in:
Jan Kratochvil 2009-03-09 22:35:44 +00:00
parent 757a13d08a
commit 36746093bb
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
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:

View file

@ -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))
{