diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-08 18:05:37 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-08 18:05:37 +0000 |
commit | 34e2dfde9ce629d445efdda8a472cd8035a8a2c8 (patch) | |
tree | ea5cd01a4e556f851c4517dd9319229b3e9c5324 /gdb/cp-valprint.c | |
parent | decbce07bc550a328a79dbb2b7e2e662e35a9047 (diff) | |
download | gdb-34e2dfde9ce629d445efdda8a472cd8035a8a2c8.zip gdb-34e2dfde9ce629d445efdda8a472cd8035a8a2c8.tar.gz gdb-34e2dfde9ce629d445efdda8a472cd8035a8a2c8.tar.bz2 |
2007-08-08 Michael Snyder <msnyder@access-company.com>
* cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r-- | gdb/cp-valprint.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 49f0560..b00996f 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); } |