libdw: Introduce libdw_unalloc to stop Dwarf_Abbrev leaks.
authorMark Wielaard <mark@klomp.org>
Sun, 10 Nov 2019 23:15:55 +0000 (00:15 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 12 Nov 2019 21:33:56 +0000 (22:33 +0100)
commit287e502815bf133f64afbf47211b11364a0a322f
tree37b5cc5d828ac08ff0e90a8db2078a708573f005
parent32cd9c4ad5b888da9c4f94a702a02d380b2a745b
libdw: Introduce libdw_unalloc to stop Dwarf_Abbrev leaks.

In the case of reading an invalid abbrev or when reading an abbrev
concurrently the Dwarf_Abbrev just created might leak because it isn't
needed after all. Introduce libdw_unalloc and libdw_typed_unalloc to
unallocate such Dwarf_Abbrevs so they don't leak.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_getabbrev.c
libdw/libdwP.h
libdw/libdw_alloc.c