From: Michael Snyder Date: Wed, 8 Aug 2007 18:05:37 +0000 (+0000) Subject: 2007-08-08 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34e2dfde9ce629d445efdda8a472cd8035a8a2c8;p=binutils-gdb.git 2007-08-08 Michael Snyder * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d657eea21c1..5b9036ab8a9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2007-08-08 Michael Snyder + * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak. + * dwarf2read.c (add_partial_symbol): Memory leak. 2007-08-06 Michael Snyder diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 49f05609529..b00996f6314 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -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); }