aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-valprint.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-08 18:05:37 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-08 18:05:37 +0000
commit34e2dfde9ce629d445efdda8a472cd8035a8a2c8 (patch)
treeea5cd01a4e556f851c4517dd9319229b3e9c5324 /gdb/cp-valprint.c
parentdecbce07bc550a328a79dbb2b7e2e662e35a9047 (diff)
downloadgdb-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.c1
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);
}