aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-03-09 22:35:44 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-03-09 22:35:44 +0000
commit36746093bb421cbad3a8afa2223a67565510f655 (patch)
tree19bc41b11f4ca16cc3d93373ad48a991e5852923 /gdb/varobj.c
parent757a13d08aac1c67aeefe8edf227bc34dbb0c681 (diff)
downloadgdb-36746093bb421cbad3a8afa2223a67565510f655.zip
gdb-36746093bb421cbad3a8afa2223a67565510f655.tar.gz
gdb-36746093bb421cbad3a8afa2223a67565510f655.tar.bz2
* varobj.c (free_variable): Call value_free.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c2
1 files changed, 2 insertions, 0 deletions
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))
{