diff options
author | Tom Tromey <tom@tromey.com> | 2020-02-24 15:50:57 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-02-24 15:50:58 -0700 |
commit | 4ac9383206032dd0357602136af1e05e7701142b (patch) | |
tree | 1c681b7b640328c94f9baf2cc5bdf39552860f16 /ld/ldlang.h | |
parent | 197400e8009fa9a15ddc59cbf2cc32b0debd3424 (diff) | |
download | gdb-4ac9383206032dd0357602136af1e05e7701142b.zip gdb-4ac9383206032dd0357602136af1e05e7701142b.tar.gz gdb-4ac9383206032dd0357602136af1e05e7701142b.tar.bz2 |
Fix a memory leak and remove an unused member
I noticed that setup_type_unit_groups leaks the symtab vector -- it
allocates this with XNEWVEC, but from what I can tell, nothing frees
it. This patch changes it to use XOBNEWVEC.
Also, the type_unit_unshareable::num_symtabs member is assigned but
never read. So, this removes it.
gdb/ChangeLog
2020-02-24 Tom Tromey <tom@tromey.com>
* dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
Remove.
* dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
XOBNEWVEC.
Diffstat (limited to 'ld/ldlang.h')
0 files changed, 0 insertions, 0 deletions