* varobj.c (free_variable): Call value_free.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 9 Mar 2009 22:35:44 +0000 (22:35 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 9 Mar 2009 22:35:44 +0000 (22:35 +0000)
gdb/ChangeLog
gdb/varobj.c

index 821a5235a12432da1f7a943588cfd37676033f8e..a0cace5ed1ce1e26f49650a43bf8d32cd2f64ea5 100644 (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:
index 2ec6d90f2255026790f9659b6e2ced0d793816c0..0147ecb931cb8d979cb0081e7f7ee5b13817f1f7 100644 (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))
     {
This page took 0.029401 seconds and 4 git commands to generate.