2007-08-08 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 8 Aug 2007 18:05:37 +0000 (18:05 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 8 Aug 2007 18:05:37 +0000 (18:05 +0000)
* cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.

gdb/ChangeLog
gdb/cp-valprint.c

index d657eea21c11360015da56ac2ed668a092f419a3..5b9036ab8a9fc5440e0f0b4bdd5865af87ff33eb 100644 (file)
@@ -1,5 +1,7 @@
 2007-08-08  Michael Snyder  <msnyder@access-company.com>
 
+       * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
+
        * dwarf2read.c (add_partial_symbol): Memory leak.
 
 2007-08-06  Michael Snyder  <msnyder@access-company.com>
index 49f05609529499170b90258df1649ee7463870f9..b00996f631455fe3223f307a717c9da3cd368f06 100644 (file)
@@ -757,6 +757,7 @@ cp_print_hpacc_virtual_table_entries (struct type *type, int *vfuncs,
          /* pai: (temp) FIXME Maybe this should be DMGL_ANSI */
          vf_name = cplus_demangle (field_physname, DMGL_ARM);
          fprintf_filtered (stream, " %s", vf_name);
+         xfree (vf_name);
          if (--(*vfuncs) > 0)
            fputs_filtered (", ", stream);
        }