aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2018-12-28 03:43:15 +0000
committerTom de Vries <vries@gcc.gnu.org>2018-12-28 03:43:15 +0000
commit53a52133a5fc74d63ce17b328774706bf1e79e02 (patch)
treebb5714dffebc534c285ee313fee9c02d9645cbce /gcc/tree-ssa-structalias.c
parentf14303090835f84474b6bf8c38bc0d07dbfc2069 (diff)
downloadgcc-53a52133a5fc74d63ce17b328774706bf1e79e02.zip
gcc-53a52133a5fc74d63ce17b328774706bf1e79e02.tar.gz
gcc-53a52133a5fc74d63ce17b328774706bf1e79e02.tar.bz2
[libbacktrace] Fix memory leak in build_address_map
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 upon failure. Bootstrapped and reg-tested on x86_64. 2018-12-28 Tom de Vries <tdevries@suse.de> * dwarf.c (build_address_map): Free addrs vector upon failure. From-SVN: r267442
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
0 files changed, 0 insertions, 0 deletions