libdw: Don't leak arange if we cannot figure out which CU it belongs to.
authorMark Wielaard <mark@klomp.org>
Tue, 5 Jun 2018 20:41:45 +0000 (22:41 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 8 Jun 2018 10:03:14 +0000 (12:03 +0200)
commitab92149d354207f55e912c264a72a258f0132e02
treebb7521a6cfcbad3423aee0f5ba8309025e47c73d
parent7009db70ca21d2b26cabd1c9fa1a50c35b6342b1
libdw: Don't leak arange if we cannot figure out which CU it belongs to.

In the unlikely case that __libdw_findcu fails to find the associated
CU we would leak one arange because it wasn't linked into the arangelist
list yet. Make sure to free it immediately.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_getaranges.c