2007-08-17 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 17 Aug 2007 23:17:30 +0000 (23:17 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 17 Aug 2007 23:17:30 +0000 (23:17 +0000)
* varobj.c (value_of_root): Memory leak.

gdb/ChangeLog
gdb/varobj.c

index 908a3c8727ac3293dfb6416fcf6f1f86fd231e05..821d62f614bd6db12f3ac9913e7bc941a74329d5 100644 (file)
@@ -1,5 +1,7 @@
 2007-08-17  Michael Snyder  <msnyder@access-company.com>
 
+       * varobj.c (value_of_root): Memory leak.
+
        * gdbtypes.h (virtual_base_list): Remove export decl.
        * gdbtypes.c (virtual_base_list): Make static.  Not called outside.
        (virtual_base_index): Memory leak.
index be6df5e8388020030ae9235d9ac110cc366b7dac..fb3d6962296f79dcd9a969c698dd1ab55afb5b1d 100644 (file)
@@ -1741,6 +1741,8 @@ value_of_root (struct varobj **var_handle, int *type_changed)
          var = *var_handle;
          *type_changed = 1;
        }
+      xfree (old_type);
+      xfree (new_type);
     }
   else
     {