Re: [PATCH 2/5][libbacktrace] Fix memory leak in build_address_map

2018-12-27 Thread Ian Lance Taylor via gcc-patches
On Wed, Nov 28, 2018 at 3:16 PM Tom de Vries wrote: > > While upon failure in build_address_map we call free_unit_addrs_vector, this > does not actually free the addrs vector, but merely the abbrevs of the units > pointed at by the elements of the addrs vector. > > Fix this by adding code to build

[PATCH 2/5][libbacktrace] Fix memory leak in build_address_map

2018-11-28 Thread Tom de Vries
Hi, While upon failure in build_address_map we call free_unit_addrs_vector, this does not actually free the addrs vector, but merely the abbrevs of the units pointed at by the elements of the addrs vector. Fix this by adding code to build_address_map to make sure that the addrs vector is freed up