Re: [PATCH] libdw: Don't leak arange if we cannot figure out which CU it belongs to.

2018-06-08 Thread Mark Wielaard
On Tue, 2018-06-05 at 22:44 +0200, Mark Wielaard wrote: > 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. Pushed to master.

[PATCH] libdw: Don't leak arange if we cannot figure out which CU it belongs to.

2018-06-05 Thread Mark Wielaard
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 --- libdw/ChangeLog | 5 + libdw/dwarf_getaranges.c | 7 ++- 2